How to display the number without comma with ionic


#1

How to display the number without comma , for exemple
11.5 ==> 11


#2

Check out this piece of the Angular Documentations.

According to the page, you need to use a decimalPipe.

Syntax:

<!-- This should output 11. -->
{{ 11.5 | number: '1.0-0' }}
<!-- Where 1 is the minimum integer digits. -->
<!-- Where .0-0 is the minimum to maximum number of decimal digits. -->

#3

thank you !! its Works