What are the parameters for the number Pipe – Angular 2
The parameter has this syntax: {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits} So your example of ‘1.2-2’ means: A minimum of 1 digit will be shown before decimal point It will show at least 2 digits after decimal point But not more than 2 digits