setNegativePattern |
Sets the negative pattern for the number
Syntax
localeObject.setNegativePattern(sPattern)
Parameters
Parameter |
Description |
---|---|
sPattern |
Required. The negative pattern to be set. |
Return Value
No return value
Example
The following example displays how this method is used.
importType("wcp.library.util.LocaleFormat"); importType("wcp.library.util.AmountFormat"); var localeObject = new Locale(sLocale);//sLocale --> "en-US" localeObject.setNegativePattern("n-");//Will set "n-" for locale "en-US"