DecimalPipe
pipe
Formats a value according to digit options and locale rules. Locale determines group sizing and separator, decimal point character, and other locale-specific configurations.
API
Description
Usage Notes
class DecimalPipe implements PipeTransform {}
transform
3 overloads
@paramvalue
string | number
The value to be formatted.
@returns
string | null
@paramvalue
null | undefined
@paramdigitsInfo
string | undefined
@paramlocale
string | undefined
@returns
null
@paramvalue
string | number | null | undefined
@paramdigitsInfo
string | undefined
@paramlocale
string | undefined
@returns
string | null
Jump to details