• Overview
@angular/common

PercentPipe

pipe

Transforms a number to a percentage string, formatted according to locale rules that determine group sizing and separator, decimal-point character, and other locale-specific configurations.

  
    class PercentPipe implements PipeTransform {
}

transform

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