I have a *ngFor loop and want to calculate a value - with 2 decimal places.
The calculation works:
IF its CURRENCY {{value | currency:'INR':true: '1.0-0'}}
{{value | currency:'INR':true: '1.0-0'}}
IF need NUMBER only {{value | number:'1.0-0'}}
{{value | number:'1.0-0'}}
1.0-0 means: at least one digit before decimal point, 0 digits after decimal point.
https://angular.io/api/common/DecimalPipe