NumberFormatterOptions

Formatter Options for Numeric Columns

TypeScript
export interface NumberFormatterOptions extends
Extends

BaseFormatterOptions

Properties

PropertyTypeDescription
AbsbooleanReturns absolute value of cell value
CeilingbooleanReturns smallest integer greater than cell value
Contentstring | numberReplaces cell value with supplied value (that can contain Template Literals)
EmptybooleanShow nothing in cell (but underlying value remains)
FloorbooleanReturns largest integer cell value
FractionDigitsnumberNumber of digits to show in Fractions (up to 20)
FractionSeparatorstringSeparator to use in fractions
IntegerDigitsnumberNumber of digits to show for Integers (up to 20)
IntegerSeparatorstringSeparator to use in Integers
MultipliernumberMultiplier to use on cell value
Notation'standard' | 'scientific'Numeric notation to use when rendering the value.
ParenthesesbooleanShows negative numbers in parentheses
PrefixstringPrefix to use before cell value
RoundbooleanRounds cell value
SuffixstringSuffix to use after cell value
TruncatebooleanTruncates cell value
ZeroDisplaystringWhen the numeric value is zero (after multiplier and rounding): - omitted / undefined, or '0' — use normal formatting (e.g. 0, 0.00) - '' — show a blank cell (user cleared the default 0 in the wizard) - any other string — show that text (e.g. -, )

Property Details

Abs

Returns absolute value of cell value

TypeScript
Abs?: boolean;
Property Value

boolean

Ceiling

Returns smallest integer greater than cell value

TypeScript
Ceiling?: boolean;
Property Value

boolean

Content

Replaces cell value with supplied value (that can contain Template Literals)

TypeScript
Content?: string | number;
Property Value

string | number

Empty

Show nothing in cell (but underlying value remains)

TypeScript
Empty?: boolean;
Property Value

boolean

Floor

Returns largest integer cell value

TypeScript
Floor?: boolean;
Property Value

boolean

FractionDigits

Number of digits to show in Fractions (up to 20)

TypeScript
FractionDigits?: number;
Property Value

number

FractionSeparator

Separator to use in fractions

TypeScript
FractionSeparator?: string;
Property Value

string

IntegerDigits

Number of digits to show for Integers (up to 20)

TypeScript
IntegerDigits?: number;
Property Value

number

IntegerSeparator

Separator to use in Integers

TypeScript
IntegerSeparator?: string;
Property Value

string

Multiplier

Multiplier to use on cell value

TypeScript
Multiplier?: number;
Property Value

number

Notation

Numeric notation to use when rendering the value.

  • 'standard' (default) — renders the number normally. - 'scientific' — renders the number in scientific notation (e.g. 1.23e+5). When set, IntegerSeparator is ignored and FractionDigits controls the number of mantissa digits.
TypeScript
Notation?: 'standard' | 'scientific';
Property Value

'standard' | 'scientific'

Parentheses

Shows negative numbers in parentheses

TypeScript
Parentheses?: boolean;
Property Value

boolean

Prefix

Prefix to use before cell value

TypeScript
Prefix?: string;
Property Value

string

Round

Rounds cell value

TypeScript
Round?: boolean;
Property Value

boolean

Suffix

Suffix to use after cell value

TypeScript
Suffix?: string;
Property Value

string

Truncate

Truncates cell value

TypeScript
Truncate?: boolean;
Property Value

boolean

ZeroDisplay

When the numeric value is zero (after multiplier and rounding): - omitted / undefined, or '0' — use normal formatting (e.g. 0, 0.00) - '' — show a blank cell (user cleared the default 0 in the wizard) - any other string — show that text (e.g. -, )

TypeScript
ZeroDisplay?: string;
Property Value

string