number
(filter in module ng
)
Formats a number as text.
If the input is not a number an empty string is returned.
{{ number_expression | number[:fractionSize] }}
$filter('number')(number[, fractionSize])
number – {number|string} –
Number to format.
fractionSize(optional=2) – {(number|string)=} –
Number of decimal places to round the number to.
{string}
– Number rounded to decimalPlaces and places a “,” after each third digit.