angular 5 convert number to two decimal in html {{}}
snippet in html

angular pipe for 2 decimal places

user5869

{{ number | number : '1.2-2'}}

angular 5 convert number to two decimal in html {{}}

user2829

<div>{{ value | number:'1.2-2' }}</div>

angular 5 convert number to two decimal in html {{}}

user2479

<div>{{ value | number:'1.2-2' }}</div>