Optional
digitThe digit separator, if specified, will be places between every digit without a grouping separator.
''
Optional
fractionThe fraction pad character, padding the right side of the fraction.
By default the specified digit for zero is used, but could also be a ' '
space char for example.
null
Optional
groupingThe grouping length, the distance between grouping separators, e.g. with a length of 2: 1,00,00,00
.
3
Optional
groupingThe grouping separator, such as the commas in 100,000,000
.
','
Optional
integerThe integer pad character, padding the left side of the integer.
By default the specified digit for zero is used,
but could also be a ' '
space char for example.
null
Optional
maximumThe maximum fraction length. By default, the maximum fraction length is determined by the precision.
null
Optional
minimumThe minimum fraction. A value with a smaller fraction length than this number will be right-padded with zeros.
0
Optional
minimumThe minimum integer length. A value with a smaller number of integer digits than this number will be left-padded with zeros or the specified integer pad character.
0
Optional
negativeThe negative sign.
'-'
Optional
notationThe formatting that should be displayed for the number.
'standard'
Optional
positiveThe positive sign.
'+'
Optional
precisionThe precision of the number, the number of significant digits.
32
Optional
radixThe radix character, or "decimal" point/mark/separator, such as the point in 0.5
).
'.'
Optional
radixWhen to display the radix character.
'auto'
Optional
roundingHow numbers are to be rounded.
'halfExpand'
Optional
scientificThe scientific notation character, such as the e
in 1.342e3
.
'e'
Optional
signWhen to display the sign.
'auto'
Optional
useWhen numbers are to be grouped.
false
Generated using TypeDoc
The options passed to
BaseFormatter
,BaseFormatter.encode
andBaseFormatter.decode
. It includes the options for theBaseConverter
.