note 38567 added to function.is-nan
| From: | Vincent at rn2 dot php dot net | Date: | Sat, 27 Dec 2003 19:05:41 +0000 |
| Subject: | note 38567 added to function.is-nan | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62578@lists.php.net to get a copy of this message | ||
The weird thing about NaN is that its not even equal to itself!
Here is a simple function that would test for NaN.
<?php
function is_NaN($value) {
return ($value != $value)
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.is-nan.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38567
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38567&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38567&report=yes
Search -- http://master.php.net/manage/user-notes.php