Hacker News new | ask | show | jobs
by stevage 502 days ago
Sometimes you do calculate prices client side. But you double check them server side.
1 comments

That just feels like a "you're holding it wrong" type of thing, especially seeing how JS is held in such high regard for its floating point math accuracy.
Ints should be used for currency calculations most of the time
Both Java and JS adhere to IEEE 754, what’s your point?

Sure it doesn’t have BigDecimal, but you’re not going to write HFT in JS either.

Is that sacrcasm? Not sure what your point is.