pp108 : getNegativePattern

getNegativePattern


Returns the negative pattern for the number

Syntax

numberFormatObj.getNegativePattern()

Parameters

NA

Return Value


Returns the negative pattern for the number

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.getNegativePattern();//Will return "-n" for locale "en-US" as "3"

See Also


NumberFormat, Locale