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