angular number format 2 digits code example
Example 1: angular pipe for 2 decimal places
{{ number | number : '1.2-2'}}
Example 2: angular 5 convert number to two decimal in html {{}}
<div>{{ value | number:'1.2-2' }}</div>
{{ number | number : '1.2-2'}}
<div>{{ value | number:'1.2-2' }}</div>