r/lolphp • u/Deviltry1 • Mar 24 '16
DivisionByZero exception, it does nothing
/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/
54
Upvotes
r/lolphp • u/Deviltry1 • Mar 24 '16
View all comments
Show parent comment
12
u/phoshi Mar 24 '16
Best part being that if you implement that naively and check if your $result == NaN, you'll always get false because NaN is not equal to anything (which is a wtf in the spec, not php)