round to 2 decimal places angular 7 code example Example: angular 5 convert number to two decimal in html {{}} <div>{{ value | number:'1.2-2' }}</div>