ILibNumFmtOptions constructor
locale Locales are specified either with a specifier string that follows the BCP-47 convention.
useNative The flag used to determine whether to use the native script settings for formatting the numbers.
type The formatter type. Valid values: "number", "currency", "percentage". Default: "number".
currency ISO 4217 currency code for "currency" type. Required for currency formatting.
maxFractionDigits Maximum digits after the decimal. -1 means unlimited, 0 means no fractional digits.
minFractionDigits Minimum digits after the decimal. Pads with zeros if necessary.
significantDigits Maximum significant digits, applied before and after the decimal.
roundingMode Governs rounding behavior. Examples: "up", "down", "halfup", "halfeven".
style Formatting style.
For "currency": "common" (symbol) or "iso" (ISO code). For "number": "standard", "scientific", "native", or "nogrouping".
Implementation
ILibNumFmtOptions({
this.locale,
this.type,
this.currency,
this.maxFractionDigits,
this.minFractionDigits,
this.significantDigits,
this.style,
this.roundingMode,
this.useNative,
});