Hacker News new | ask | show | jobs
by RedShift1 235 days ago
Much easier would just be native decimal support in JS and we can represent a decimal using d as the decimal point, for example 15d0 (15.0) or 384d25 (384.25).

Using cents instead of dollars sounds fine until you have to do math like VAT, you really need decimal math for that.

1 comments

Many applications simply use strings for that, like for dates