RealGrid2 API
Interface
NumberFormatOptions

NumberFormatOptions

formatOption to display numbers, currency, and accounting expressed differently in each language

Signature:

export interface NumberFormatOptions

Remarks

Format is performed using the JavaScript standard library. Intl.NumberFormat (opens in a new tab)

Properties

PropertyTypeDescription
compactDisplay"short" | "long"
currencystring
currencyDisplaystring
currencySign'standard' | 'accounting'
excelFormatstringSpecifies the format to use when output to Excel.
localeMatcherstring
maximumFractionDigitsnumber
maximumSignificantDigitsnumber
minimumFractionDigitsnumber
minimumIntegerDigitsnumber
minimumSignificantDigitsnumber
notation'standard' | "scientific" | "engineering" | "compact"
numberingSystemstring
roundingIncrementnumber
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'
unitstring
unitDisplay"short" | "long" | "narrow"
useGroupingtrue | 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