Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sometimes you do calculate prices client side. But you double check them server side.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: