NumberFormatOptions
formatOption to display numbers, currency, and accounting expressed differently in each language
Signature:
export interface NumberFormatOptionsRemarks
Format is performed using the JavaScript standard library. Intl.NumberFormat (opens in a new tab)
Properties
| Property | Type | Description |
|---|---|---|
| compactDisplay | "short" | "long" | |
| currency | string | |
| currencyDisplay | string | |
| currencySign | 'standard' | 'accounting' | |
| excelFormat | string | Specifies the format to use when output to Excel. |
| localeMatcher | string | |
| maximumFractionDigits | number | |
| maximumSignificantDigits | number | |
| minimumFractionDigits | number | |
| minimumIntegerDigits | number | |
| minimumSignificantDigits | number | |
| notation | 'standard' | "scientific" | "engineering" | "compact" | |
| numberingSystem | string | |
| roundingIncrement | number | |
| roundingMode | 'ceil' | 'floor' | 'expand' | 'trunc' | 'halfCeil' | 'halfFloor' | 'halfExpand' | 'halfTrunc' | 'halfEven' | |
| roundingPriority | 'auto' | 'morePrecision' | 'lessPrecision' | |
| signDisplay | "auto" | "always" | "exceptZero" | "never" | |
| style | 'decimal' | 'currency' | 'percent' | 'unit' | |
| trailingZeroDisplay | 'auto' | 'stripIfInteger' | |
| unit | string | |
| unitDisplay | "short" | "long" | "narrow" | |
| useGrouping | true | false |
Properties Desc
compactDisplay
Type - "short" | "long"
currency
Type - string
currencyDisplay
Type - string
currencySign
Type - 'standard' | 'accounting'
excelFormat
Specifies the format to use when output to Excel.
Type - string
localeMatcher
Type - string
maximumFractionDigits
Type - number
maximumSignificantDigits
Type - number
minimumFractionDigits
Type - number
minimumIntegerDigits
Type - number
minimumSignificantDigits
Type - number
notation
Type - 'standard' | "scientific" | "engineering" | "compact"
numberingSystem
Type - string
roundingIncrement
Type - number
roundingMode
Type - 'ceil' | 'floor' | 'expand' | 'trunc' | 'halfCeil' | 'halfFloor' | 'halfExpand' | 'halfTrunc' | 'halfEven'
roundingPriority
Type - 'auto' | 'morePrecision' | 'lessPrecision'
signDisplay
Type - "auto" | "always" | "exceptZero" | "never"
style
Type - 'decimal' | 'currency' | 'percent' | 'unit'
trailingZeroDisplay
Type - 'auto' | 'stripIfInteger'
unit
Type - string
unitDisplay
Type - "short" | "long" | "narrow"
useGrouping
Type - true | false