AngularJS Tutorial - number Filter








The number filter formats a number.

It can take a second optional parameter as the specified number of decimal places with rounding.

Example

{{ 123456789 | number }}

returns 1,234,567,890

{{ 1.234567 | number:2 }}

returns 1.23