Re:What's new in PHP 8?
by jorams on Friday August 14, 2020 @02:48PM
(#24161731)
It's important to note here that PHP is converting to an integer, while JS is converting to a double. Integers don't have NaN as a concept. JS doesn't have integers, but if it did it would probably make the same kind of mistake. (This is a guess of course, but a reasonable one given the other insane conversions it does.)
[ Parent
| on HN ]
There are no comments on this comment yet.