Reputation: 513
I use curreny pipe, but it add digits after dot.
How to remove them?
The result of {{ 1111111 | | currency:'ILS' }}
is 1,111,111.00.
I want to remove the ".00"
I tried to use both pipes, curreny and number:
{{ 1111111 | number: '2.0' | currency:'ILS' }}
but it don't give any result.
Upvotes: 1
Views: 914
Reputation: 2927
Try this
{{ 1111111 | currency:'ILS': 'symbol':'1.0-0' }}
symbol will remove zero's.
Please read the documentation is really explained in details. https://angular.io/api/common/CurrencyPipe
Happy coding
Upvotes: 2