pp108 : setNumberGroupSizes

setNumberGroupSizes


Sets the number group sizes for the corresponding locale

Syntax

localeObject.setNumberGroupSizes(groupSizes)

Parameters

Parameter

Description

groupSizes

Required. The number group sizes separated with commas.

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.setNumberGroupSizes("3,2");//Will set the number group sizes for locale "en-US" as "3,2". 
For ex: "545123212" will formatted as "5,451,232,12"

See Also


Locale, Locales