Closed
Description
🚀 feature request
Relevant Package
This feature request is for @angular/common
Description
In many use cases where showing currency, it looks better to not show any decimals when there aren't any to show. So "€100" instead of "€100.00". However when the price is 99.99 you do want to show the decimals. What you don't want is when the price is 99.90, to have it shown as 99.9.
This means that none of the number formats "1,0", "1.2" or "1.0-2" have the desired effect.
Describe the solution you'd like
To be able to specify 2 options for decimals, for instance: "1.0|2".
So that:
1.0 | currency : 'EUR' : 'symbol' : '1.0|2'
-> €11.1 | currency : 'EUR' : 'symbol' : '1.0|2'
-> €1.101.11 | currency : 'EUR' : 'symbol' : '1.0|2'
-> €1.11