I use curreny pipe, but it add digits after dot. How to remove them?
The result of {{ 1111111 | | currency:'ILS' }}
{{ 1111111 | | currency:'ILS' }}
{{ 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' }}
{{ 1111111 | number: '2.0' | currency:'ILS' }}
{{ 1111111 | number: '2.0' | currency:'ILS' }}
but it don't give any result.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.