English
latest (v4.7.0)

FormatNumber CORE

Description and examples API Setup Source code
Formatted number: 100
Can be expanded with TuiNumberFormat

Usage example: [tuiNumberFormat]='{decimalMode, precision, rounding, zeroPadding, thousandSeparator, decimalSeparator}'

Requires you to import TuiNumberFormat .

Name and descriptionType Value
[decimalMode]
always
number of digits after decimalSeparator is always equal to the precision.
pad
pads trailing zeroes up to precision, if the number is fractional
not-zero
drops trailing zeroes
TuiDecimalMode
'pad'
[rounding]
Rounding
TuiRounding
'truncate'
[precision]
A number of digits after comma ( Infinity for an untouched decimal part)
number
[thousandSeparator]
Symbol for separating thousands
string
[decimalSeparator]
Symbol for separating fraction
string