[SerializableAttribute]
public class IntegralRoundingStrategy : IRoundingStrategy
Value | Rounded to |
---|---|
0.490 | 0 |
0.494 | 0 |
0.495 | 0 |
0.499 | 0 |
0.500 | 0 |
0.501 | 0 |
0.990 | 0 |
0.994 | 0 |
0.995 | 0 |
0.999 | 0 |
1.000 | 1 |
1.999 | 1 |
IntegralRoundingStrategy | Initializes a new instance of the IntegralRoundingStrategy class |
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 |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
Round | Returns a decimal rounded to the nearest value of 10^-n. |
ToString | Returns a string that represents the current object. (Inherited from Object) |