VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/angularjs-number-filter/

⇱ AngularJS number Filter - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

AngularJS number Filter

Last Updated : 11 Jul, 2025

AngularJS number filter is used to convert a number into a string or text. We can also define a limit to display a number of decimal digits. The number filter rounds off the number to specified decimal digits. 

Syntax:

{{ string| number : fractionSize}}

Parameter Values: It contains single parameter value fractionsize which is of type number and used to specify the number of decimals. 

Example 1: This example format the number and set it into the fraction with two decimal places. 

Output:

👁 Image
 

Example 2: This example format the number and set it into the fraction with three decimal places. 

Output:

👁 Image
 
Comment

Explore