asp.net.ph

NumberFormatInfo.NumberDecimalDigits Property

System.Globalization Namespace   NumberFormatInfo Class


Sets or retrieves the number of decimal places to use in numeric values.

[ VB ]
public Property NumberDecimalDigits As Integer

[ C# ]
public int NumberDecimalDigits {get; set;}

[ C++ ]
public: __property int get_NumberDecimalDigits ( );
public: __property void set_NumberDecimalDigits ( int );

[ JScript ]
function get NumberDecimalDigits ( ) : int;
public function set NumberDecimalDigits ( int );

Property Value

The number of decimal places to use in numeric values. The default for InvariantInfo is 2.

Exceptions


Exception Type Condition
ArgumentOutOfRangeException The property is being set to a value that is less than 0 or greater than 99.
InvalidOperationException The property is being set and the NumberFormatInfo is read-only.

Example

The below shows the NumberDecimalDigits used for each of the available cultures.

 Show me 

See Also

NumberFormatInfo Members   NumberDecimalSeparator   NumberGroupSeparator   NumberGroupSizes   NaNSymbol   NumberNegativePattern   CurrencyDecimalDigits   PercentDecimalDigits Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note