Preserve decimal values with trailing zeros#45
Preserve decimal values with trailing zeros#45sidonath wants to merge 1 commit intoHubSpot:masterfrom
Conversation
This addresses issue HubSpot#38, but introduces a huge backwards incompatibility where the decimal value is always shown if formatting rule allows it.
|
Just what I'm after - thanks a lot |
|
The deal breaker is the backwards incompatibility, as wanting trailing zeros cut off is a common desire. The choice needs to be expressible in the format string. |
|
@zackbloom ok, I could do that, but shouldn't this be the default behavior going forward? Since with the current implementation going from "1.19" to "1.20" will not look pretty due to digits disappearing. Maybe instead there should be a config option, say Adding this option to format string would IMHO needlessly complicate parsing and usage. |
|
The format string now allows you to configure the number of decimal places, so it seems like this would fit in as well, but I take your point. |
|
🍰 |
|
This looks great to me. @marcneuwirth Care to review and merge? |
|
As I dont have any clue about how to add the currency symbol on the odometer, I post this question here, maybe someone will help me. Regards. |
This addresses issue #38, but introduces a huge backwards incompatibility where the decimal value is always shown if a formatting rule allows it.
Update:
Whoops, discovered a bug when using thousands separator in format options. Working on a fix.It should be good to merge now