pp108 : setCurrencyDecimalSeparator

setCurrencyDecimalSeparator


Sets the currency decimal separator for the corresponding locale

Syntax

localeObject.setCurrencyDecimalSeparator(separator)

Parameters

Parameter

Description

separator

Required. The currency decimal separator.

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.setCurrencyDecimalSeparator(".");//Will set "." for locale "en-US"

See Also


Locale, Locales