NumberFormatInfo..::..NumberDecimalDigits Property
Gets or sets the number of decimal places to use in numeric values.
Namespace:
System.GlobalizationAssembly: Bridge (in Bridge.dll)
Syntax
[FieldPropertyAttribute] public int NumberDecimalDigits { get; set; }
<FieldPropertyAttribute> _ Public Property NumberDecimalDigits As Integer Get Set
[FieldPropertyAttribute] public: property int^ NumberDecimalDigits { int^ get (); void set (int^ value); }
Return Value
The number of decimal places to use in numeric values. The default for InvariantInfo is 2.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | The property is being set to a value that is less than 0 or greater than 99. |
System..::..InvalidOperationException | The property is being set and the NumberFormatInfo object is read-only. |