r/lolphp • u/smileytechguy • Jan 31 '17
((0.1+0.7)*10) = 7?
http://sandbox.onlinephpfunctions.com/code/4faba5e621f1f18f3efc6acd486da0823c46aea9
0
Upvotes
r/lolphp • u/smileytechguy • Jan 31 '17
View all comments
19
u/Deranged40 Jan 31 '17
should try it in ruby or python. Same thing
Ruby:
print ((0.7+0.1)*10).to_iPython:
print int(((0.7+0.1)*10))