Typecasting edge cases sure are fun.
console.log( !! '0', !! '0.0', '0' == '0.0' ); // (JS) true, true, false
var_dump( !! '0', !! '0.0', '0' == '0.0' ); // (PHP) false, true, true
I’m not sure there is a right answer here.
Written by
in Notes.
Typecasting edge cases sure are fun.
console.log( !! '0', !! '0.0', '0' == '0.0' ); // (JS) true, true, false
var_dump( !! '0', !! '0.0', '0' == '0.0' ); // (PHP) false, true, true
I’m not sure there is a right answer here.
Leave a Reply