Comment by stevage 10 months ago Sometimes you do calculate prices client side. But you double check them server side. 5 comments stevage Reply dylan604 10 months ago 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. wayvey 10 months ago Ints should be used for currency calculations most of the time wiseowise 10 months ago 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. vitus 10 months ago Actually...https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... stevage 10 months ago Is that sacrcasm? Not sure what your point is.
dylan604 10 months ago 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. wayvey 10 months ago Ints should be used for currency calculations most of the time wiseowise 10 months ago 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. vitus 10 months ago Actually...https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... stevage 10 months ago Is that sacrcasm? Not sure what your point is.
wiseowise 10 months ago 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. vitus 10 months ago Actually...https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
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.
Actually...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Is that sacrcasm? Not sure what your point is.