Optional
decimal[Default: "."
] Character used to separate the integer part from the
fractional part.
Optional
experimental[Default: false
] Experimental. Use Indian 2,2,3 digit grouping rule
(e.g. "1,00,00,000"
) instead of the three digit system. This option has
to be used in conjunction with the groupSeparator
option.
Optional
group[Default: ""
] Delimiter used to separate the groups of thousands (three
digits) of the integer part. Grouping is disabled by default; give ","
,
"."
, " "
, or any other delimiter to enable grouping.
Optional
templates[Default: ["{}"]
] Tuple of template strings used to format [positive numbers, negative numbers, zero]
, respectively. "{}"
in a template
string is replaced with the resulting string. The template for zero
defaults to the template for positive numbers and the template for negative
numbers defaults to the template for positive numbers with the prefix "-"
,
if omitted. This option is convenient to decorate the resulting string with
a currency symbol and/or negative parenstheses. See the above example for
usage.
Options used by BigAmount.toFixed to format a BigAmount as decimal.
Example