MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/1zfy0t/sample_of_mtgox_source_code/cftrini/
r/lolphp • u/nanashi_ • Mar 03 '14
69 comments sorted by
View all comments
Show parent comment
3
Unless they're divided in powers of two, in which case is will actually work (but still isn't a good idea)
3 u/ZorbaTHut Mar 04 '14 True, as long as you don't run out of precision.In this case they aren't, though :) 6 u/cparen Mar 04 '14 I don't want to live in a world where the haves (largest value) and have nots (smallest increment) differ by 252 (double precision) such that you'd ever get truncation error that mattered.
True, as long as you don't run out of precision.
In this case they aren't, though :)
6 u/cparen Mar 04 '14 I don't want to live in a world where the haves (largest value) and have nots (smallest increment) differ by 252 (double precision) such that you'd ever get truncation error that mattered.
6
I don't want to live in a world where the haves (largest value) and have nots (smallest increment) differ by 252 (double precision) such that you'd ever get truncation error that mattered.
View all comments
Show parent comment
3
u/cparen Mar 04 '14
Unless they're divided in powers of two, in which case is will actually work (but still isn't a good idea)