| |||||||||
NumberFormatInfo.CurrencyDecimalSeparator PropertySystem.Globalization Namespace NumberFormatInfo Class Sets or retrieves the string to use as the decimal separator in currency values. [ VB ] public Property CurrencyDecimalSeparator As String [ C# ] public string CurrencyDecimalSeparator {get; set;} [ C++ ] public: __property String* get_CurrencyDecimalSeparator ( ); public: __property void set_CurrencyDecimalSeparator ( String* ); [ JScript ] function get CurrencyDecimalSeparator ( ) : String; public function set CurrencyDecimalSeparator ( String ); Property ValueThe string to use as the decimal separator in currency values. The default for InvariantInfo is '.'. Exceptions
RemarksThe initial value of this property is derived from the settings in Regional and Language Options ( or Regional Options or Regional Settings ) in Control Panel. However, if any of the group separators ( NumberGroupSeparator, CurrencyGroupSeparator, or PercentGroupSeparator ) is the same as any of the decimal separators ( NumberDecimalSeparator, CurrencyDecimalSeparator, or PercentDecimalSeparator ), parsing ambiguous strings produces unpredictable results. If you explicitly set any of the group separator properties in NumberFormatInfo to a value that is the same as any of the decimal separators or if you explicitly set any of the decimal separators to a value that is the same as any of the group separators, ArgumentException is thrown. ExampleThe below shows the CurrencyDecimalSeparator used for each of the available cultures. See AlsoNumberFormatInfo Members CurrencyDecimalDigits CurrencyGroupSeparator CurrencyGroupSizes CurrencySymbol CurrencyNegativePattern CurrencyPositivePattern NumberDecimalSeparator PercentDecimalSeparator |
| ||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme