pp108 : getCurrencyDecimalDigits

getCurrencyDecimalDigits


Returns the currency decimal digits for the corresponding locale

Syntax

localeObject.getCurrencyDecimalDigits()

Parameters

NA

Return Value


Returns the currency 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.getCurrencyDecimalDigits();//Will return "2" for locale "en-US"

See Also


Locale, Locales