note 101058 added to function.min
| From: | phpatkeithtylerdotcom at osu1 dot php dot net | Date: | Tue, 23 Nov 2010 21:03:47 +0000 |
| Subject: | note 101058 added to function.min | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-174298@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.59.179.206
----
Manual Page -- http://www.php.net/manual/en/function.min.php
Edit -- https://master.php.net/note/edit/101058
Del: integrated -- https://master.php.net/note/delete/101058/integrated
Del: useless -- https://master.php.net/note/delete/101058/useless
Del: bad code -- https://master.php.net/note/delete/101058/bad+code
Del: spam -- https://master.php.net/note/delete/101058/spam
Del: non-english -- https://master.php.net/note/delete/101058/non-english
Del: in docs -- https://master.php.net/note/delete/101058/in+docs
Del: other reasons-- https://master.php.net/note/delete/101058
Reject -- https://master.php.net/note/reject/101058
Search -- https://master.php.net/manage/user-notes.php