formatdecimal value correct to two places in typescript angular 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>