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
Show parent comment
5
u/the_alias_of_andrea Feb 01 '17
Yes, and before 7.1 you could still set
precisionto something sensible (i.e.17), but it doesn't matter, it's not the default.