Skip to content

Instantly share code, notes, and snippets.

@mbunge
Created August 10, 2012 11:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mbunge/3313564 to your computer and use it in GitHub Desktop.
Hum. Can'T get any sense about this.
Since NaN is not even equal to itself, here is a way to test it:
From: http://de.php.net/manual/en/function.is-nan.php#50295
<?php
function my_is_nan($_) {
return ($_ !== $_);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment