angular float 2 decimal code example
Example 1: angular pipe for 2 decimal places
{{ number | number : '1.2-2'}}
Example 2: accept 2 values after decimal in angular forms
<input type="textbox" [(ngModel)]="InputValue" appTwoDigitDecimaNumber>
{{ number | number : '1.2-2'}}
<input type="textbox" [(ngModel)]="InputValue" appTwoDigitDecimaNumber>