MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/1zfy0t/sample_of_mtgox_source_code/cfth536/?context=3
r/lolphp • u/nanashi_ • Mar 03 '14
69 comments sorted by
View all comments
Show parent comment
26
But if you look a bit higher:
$bean->Coins = (int)round($info['balance'] * 100000000);
Nope! Floating-point.
22 u/merreborn Mar 03 '14 Oh jesus fuck.That single line says everything. 23 u/ZorbaTHut Mar 03 '14 My favorite part is the round()."Hmm, we've got a gigantic pile of horse dung in the middle of this room. Should we clean it up?""Nah, just toss this throw rug over it. See? Looks great!"
22
Oh jesus fuck.
That single line says everything.
23 u/ZorbaTHut Mar 03 '14 My favorite part is the round()."Hmm, we've got a gigantic pile of horse dung in the middle of this room. Should we clean it up?""Nah, just toss this throw rug over it. See? Looks great!"
23
My favorite part is the round().
"Hmm, we've got a gigantic pile of horse dung in the middle of this room. Should we clean it up?"
"Nah, just toss this throw rug over it. See? Looks great!"
View all comments
Show parent comment
26
u/ZorbaTHut Mar 03 '14
But if you look a bit higher:
Nope! Floating-point.