pp108 : getNumberDecimalDigits

getNumberDecimalDigits


Returns the number of decimal digits for the corresponding locale

Syntax

localeObject.getNumberDecimalDigits()

Parameters

NA

Return Value


Returns the number of decimal digits

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

See Also


Locale, Locales