Skip to main content

$$numberformat

Usage​

Returns​

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
PrimaryBigDecimalYes
typeenumNUMBER/ DECIMAL/CURRENCY/PERCENT/INTEGER/COMPACT/ BASENUMBER

NUMBER type​

Usage​

Returns​

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
Primary
typeconstNUMBER

DECIMAL type​

Usage​

Returns​

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
Primary
typeconstDECIMAL
localestring"en-US"
patternstring"#0.00"
groupingstring","
decimalstring"."

CURRENCY type​

Usage​

Returns​

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
Primary
typeconstCURRENCY
localestring"en-US"
currencystring

PERCENT type​

Usage​

Returns​

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
Primary
typeconstPERCENT
localestring"en-US"

INTEGER type​

Usage​

Returns​

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
Primary
typeconstINTEGER
localestring"en-US"

COMPACT type​

Usage​

Returns​

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
Primary
typeconstCOMPACT
localestring"en-US"
compact_styleenumSHORT/ LONGSHORT

BASE type​

Usage​

Returns​

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
Primary
typeconstBASE
radixinteger10

Examples​