NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

NumberFormatInfo.CurrencyDecimalDigits

Retrieves and assigns the number of decimal places used in the representation of currency values.

[Visual Basic]
Public Property CurrencyDecimalDigits As Integer
[C#]
public int CurrencyDecimalDigits {get; set;}
[C++]
public: __property int get_CurrencyDecimalDigits();
public: __property void set_CurrencyDecimalDigits(int);
[JScript]
public function get CurrencyDecimalDigits() : int;
public function set CurrencyDecimalDigits(int);

Property Value

Read/write. The number of decimal places used in the representation of currency values. The default value is 2.

Exceptions

Exception Type Condition
ArgumentException value to assign is < 0 or > 99.
InvalidOperationException This NumberFormatInfo object is read-only and an attempt is made to assign a value.

Remarks

Assignment is not allowed if this NumberFormatInfo object is read-only.

See Also

NumberFormatInfo Class | NumberFormatInfo Members | System.Globalization Namespace