IntegralRoundingStrategy Class

Implements a strategy for rounding numbers wherein the fractional portion of a number is simply discarded, so the number is always rounded to its whole number.

Definition

Namespace: InnerDrive.Financial
Assembly: InnerDrive.Financial (in InnerDrive.Financial.dll) Version: 5.2.9017.0
C#
[SerializableAttribute]
public class IntegralRoundingStrategy : IRoundingStrategy
Inheritance
Object    IntegralRoundingStrategy
Implements
IRoundingStrategy

Remarks

All rounding values return the integral part of the number:
ValueRounded to
0.4900
0.4940
0.4950
0.4990
0.5000
0.5010
0.9900
0.9940
0.9950
0.9990
1.0001
1.9991

Constructors

IntegralRoundingStrategyInitializes a new instance of the IntegralRoundingStrategy class

Properties

MaxDigits Returns the maximum number of significant digits to which the Round(Decimal, Int32) method can round.
Name Returns the friendly name of the rounding strategy.
TypeName Gets the FullName to assist serialization

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Round Returns a decimal rounded to the nearest value of 10^-n.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also