I'm creating shop app and i have problem with my number pipe. Is there any way to enable format number like 64,90 to set two digits after the decimal point only if there's value in db like 64.9 and if it's 60 in db, to show only 60 without digits after ?
<p>{{ product.price | number: '1.2-2' }} zł</p>
This pipe shows my correct 64.90 but not correct 60.00
-1">{{ product.price | number: '1.2-2' }} {{ product.price }}
` – enf0rcer Mar 21 '18 at 20:49