Javatpoint Logo
Javatpoint Logo

Number Filter

The number filter is used to format a number to a string. If the input is null or undefined, it will just be returned. If the input is infinite (Infinity or -Infinity), the Infinity symbol '8' or '-8' is returned, respectively. If the input is not a number an empty string is returned.

Syntax:

Parameter explanation:

number: It specifies the input numbers which you want to format.

fractionSize: It is optional. It specifies number of decimal places to round the number.

Let's take an example to demonstrate the number filter.

See this example:

Test it Now
Next TopicorderBy Filter




Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA