Interface BaseFormatterOnlyOptionsInternal

The options specifically to the BaseFormatter class.

Hierarchy

Properties

digitSeparator?: string

The digit separator, if specified, will be places between every digit without a grouping separator.

Default Value

''

fractionPadCharacter?: string

The 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.

Default Value

null

groupingLength?: number

The grouping length, the distance between grouping separators, e.g. with a length of 2: 1,00,00,00.

Default Value

3

groupingSeparator?: string

The grouping separator, such as the commas in 100,000,000.

Default Value

','

integerPadCharacter?: string

The 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.

Default Value

null

minimumFractionLength?: number

The minimum fraction. A value with a smaller fraction length than this number will be right-padded with zeros.

Default Value

0

minimumIntegerLength?: number

The 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.

Default Value

0

negativeSign?: string

The negative sign.

Default Value

'-'

positiveSign?: string

The positive sign.

Default Value

'+'

radixCharacter?: string

The radix character, or "decimal" point/mark/separator, such as the point in 0.5).

Default Value

'.'

radixDisplay?: RadixDisplay

When to display the radix character.

Default Value

'auto'

scientificNotationCharacter?: string

The scientific notation character, such as the e in 1.342e3.

Default Value

'e'

signDisplay?: SignDisplay

When to display the sign.

Default Value

'auto'

useGrouping?: UseGrouping

When numbers are to be grouped.

Default Value

false

Generated using TypeDoc