setNumberDecimalDigits |
Sets the number of decimal digits for the corresponding locale
Syntax
localeObject.setNumberDecimalDigits(nrDigits)
Parameters
Parameter |
Description |
---|---|
nrDigits |
Required. The number of decimal digits. |
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);//sLocale --> "en-US" localeObject.setNumberDecimalDigits("3");//Will set "3" for locale "en-US"