Re: note 101058 added to function.min
| From: | Daniel P. Brown | Date: | Tue, 23 Nov 2010 20:58:59 +0000 |
| Subject: | Re: note 101058 added to function.min | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174299@lists.php.net to get a copy of this message | ||
And here it is, re-added.
On Tue, Nov 23, 2010 at 16:03, <phpatkeithtylerdotcom@osu1.php.net> wrote:
> 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
>
>
> --
> PHP Notes Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
</Daniel P. Brown>
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/