asp.net.ph

NumberFormatInfo.CurrencyDecimalDigits Property

System.Globalization Namespace   NumberFormatInfo Class


Indicates the number of decimal places to use in currency values.

[ VB ]
public Property CurrencyDecimalDigits As Integer

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

[ C++ ]
public: __property int get_CurrencyDecimalDigits ( );
public: __property void set_CurrencyDecimalDigits ( int );

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

Property Value

The number of decimal places to use in currency 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 CurrencyDecimalDigits used for each of the available cultures.

 Show me 

See Also

NumberFormatInfo Members   CurrencyDecimalSeparator   CurrencyGroupSeparator   CurrencyGroupSizes   CurrencySymbol   CurrencyNegativePattern   CurrencyPositivePattern   NumberDecimalDigits   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