• Overview
@angular/common

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.

  
    class DecimalPipe implements PipeTransform {
}

transform

3 overloads
@paramvaluestring | number

The value to be formatted.

@paramdigitsInfostring | undefined

Sets digit and decimal representation. See more.

@paramlocalestring | undefined

Specifies what locale format rules to use. See more.

@returnsstring | null
@paramvaluenull | undefined
@paramdigitsInfostring | undefined
@paramlocalestring | undefined
@returnsnull
@paramvaluestring | number | null | undefined
@paramdigitsInfostring | undefined
@paramlocalestring | undefined
@returnsstring | null
Jump to details