Interface FormatOptions
interface FormatOptions {
binary?: boolean;
bits?: boolean;
locale?: string | boolean | string[];
maximumFractionDigits?: number;
minimumFractionDigits?: number;
signed?: boolean;
}
binary?: boolean;
bits?: boolean;
locale?: string | boolean | string[];
maximumFractionDigits?: number;
minimumFractionDigits?: number;
signed?: boolean;
}
Index
Properties
Optionalbinary
binary?: boolean
Uses binary bytes (e.g. kibibyte).
Optionalbits
bits?: boolean
Uses bits representation.
Optionallocale
locale?: string | boolean | string[]
Uses localized number formatting. If it is set to true, uses default locale on the system. If it's set to string, uses that locale. The given string should be a BCP 47 language tag. You can also give the list of language tags.
OptionalmaximumFractionDigits
maximumFractionDigits ?: number
The maximum number of fraction digits to display. If neither
minimumFractionDigits or maximumFractionDigits
are set.
OptionalminimumFractionDigits
minimumFractionDigits ?: number
The minimum number of fraction digits to display. If neither
minimumFractionDigits or maximumFractionDigits
are set.
Optionalsigned
signed?: boolean
Include plus sign for positive numbers.
Options for
format.