note 101057 added to function.min
| From: | phpatkeithtylerdotcom at osu1 dot php dot net | Date: | Tue, 23 Nov 2010 20:48:41 +0000 |
| Subject: | note 101057 added to function.min | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-174295@lists.php.net to get a copy of this message | ||
If NAN is the first argument to min(), the second argument will always be returned.
If NAN is the second argument, NAN will always be returned.
The relationship is the same but inverted for max().
<?php
// \n's skipped for brevity
print max(0,NAN);
print max(NAN,0);
print min(0,NAN);
print min(NAN,0);
?>
Returns:
0
NAN
NAN
0
----
Server IP: 64.71.164.2
Probable Submitter: 174.46.204.200
----
Manual Page -- http://www.php.net/manual/en/function.min.php
Edit -- https://master.php.net/note/edit/101057
Del: integrated -- https://master.php.net/note/delete/101057/integrated
Del: useless -- https://master.php.net/note/delete/101057/useless
Del: bad code -- https://master.php.net/note/delete/101057/bad+code
Del: spam -- https://master.php.net/note/delete/101057/spam
Del: non-english -- https://master.php.net/note/delete/101057/non-english
Del: in docs -- https://master.php.net/note/delete/101057/in+docs
Del: other reasons-- https://master.php.net/note/delete/101057
Reject -- https://master.php.net/note/reject/101057
Search -- https://master.php.net/manage/user-notes.php