export class AppComponent {
value1 = 0;
value2 = 0.00;
value3 = 0.01;
}
<p>
{{value1}} - shows 0
</p>
<p>
{{value2}} shows 0
</p>
<p>
{{value3}} shows 0.01
</p>
Hello, I need to show values in html with 2 places after decimal. For example I need to show 0.00 when it's 0. Is it possible? Stackblitz link - https://stackblitz.com/edit/angular-4cm9yr