Re:How to Handle Monetary Values in JavaScript
by mikeash on Tuesday October 30, 2018 @08:05PM
(#18342311)
I ran into this once because a price was slightly too low, and got truncated. A $19.99 item got displayed as $19.98. You can work around this by rounding everywhere but that’s error-prone.
[ Parent
| on HN ]
There are no comments on this comment yet.