[SerializableAttribute]
public class DefaultRoundingStrategy : IRoundingStrategy
Value | Rounded to |
---|---|
0.490 | 0 |
0.494 | 0 |
0.495 | 0 |
0.499 | 0 |
0.500 | 0 |
0.501 | 1 |
0.990 | 1 |
0.994 | 1 |
0.995 | 1 |
0.999 | 1 |
DefaultRoundingStrategy | Initializes a new instance of the DefaultRoundingStrategy 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) |