setDecimalSeparator |
Sets the number decimal separator for the corresponding locale
Syntax
localeObject.setDecimalSeparator(separator)
Parameters
Parameter |
Description |
---|---|
separator |
Required. The decimal separator; for example, '.' |
Return Value
NA
Example
The following example displays how this method is used.
importType("wcp.library.util.LocaleFormat"); importType("wcp.library.util.Locale"); var localeObject = new Locale(sLocale, element);//sLocale --> "en-US" localeObject.setDecimalSeparator(".");//Will set the gruoup seperator for locale "en-US" as "."