See FORMAT and toFormat.

interface Format {
    decimalSeparator?: string;
    fractionGroupSeparator?: string;
    fractionGroupSize?: number;
    groupSeparator?: string;
    groupSize?: number;
    prefix?: string;
    secondaryGroupSize?: number;
    suffix?: string;
}

Properties

decimalSeparator?: string

The decimal separator.

fractionGroupSeparator?: string

The grouping separator of the fraction part.

fractionGroupSize?: number

The grouping size of the fraction part.

groupSeparator?: string

The grouping separator of the integer part.

groupSize?: number

The primary grouping size of the integer part.

prefix?: string

The string to prepend.

secondaryGroupSize?: number

The secondary grouping size of the integer part.

suffix?: string

The string to append.