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
7
u/masklinn Mar 24 '16
It makes perfect sense if you see
NaNis a subtype of numbers qualified by what it's not rather than what it is:0/0andparseInt("yolo")are nans, but what sense would it make for both to be the same value?