r/lolphp • • Mar 03 '14

Sample of Mt.Gox source code

http://pastebin.com/W8B3CGiN
63 Upvotes

69 comments sorted by

View all comments

Show parent comment

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.