Angular PercentPipe -
Angular provides a PercentPipe and it is used to format a number as a percentage according to below rules.
The expression rule with percent -
{{ value_expression | percent [ : digitsInfo [ : locale ] ] }}
The input value to be formatted as a percentage and it can be any type.
The digitsInfo is optional string parameters and by default is undefined.
The locale is optional string parameters and by default is undefined.
The example as,
<h2>Result- {{marks | percent}}</h2>
<!-- output result is - '98%'-->