Retrieves and assigns the number of decimal places used in the representation of numerical values.
[Visual Basic] Public Property NumberDecimalDigits As Integer [C#] public int NumberDecimalDigits {get; set;} [C++] public: __property int get_NumberDecimalDigits(); public: __property void set_NumberDecimalDigits(int); [JScript] public function get NumberDecimalDigits() : int; public function set NumberDecimalDigits(int);
Read/write. The number of decimal places used to represent numerical values. The default value is 2.
Exception Type | Condition |
---|---|
ArgumentException | value is < 0 or value > 99. |
InvalidOperationException | This NumberFormatInfo object is read-only and an attempt is made to assign a value. |
Assignment is not allowed if this NumberFormatInfo object is read-only.
NumberFormatInfo Class | NumberFormatInfo Members | System.Globalization Namespace