Re: PHP_FLOAT_MIN is positive
| From: | Joe Watkins | Date: | Wed, 03 Apr 2019 15:21:52 +0000 |
| Subject: | Re: PHP_FLOAT_MIN is positive | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105047@lists.php.net to get a copy of this message | ||
Thanks for explain.
Cheers
Joe
On Wed, 3 Apr 2019 at 14:40, Rowan Collins <rowan.collins@gmail.com> wrote:
> On Wed, 3 Apr 2019 at 13:33, Benjamin Morel <benjamin.morel@gmail.com>
> wrote:
>
> > PHP_FLOAT_MIN (float)
> > > Smallest representable POSITIVE floating point number. If you need the
> > > smallest representable floating point number, use - PHP_FLOAT_MAX.
> > > Available as of PHP 7.2.0.
> >
>
>
> I'd avoid the word "smallest". PHP_FLOAT_MIN could be described as having
> the "smallest magnitude", and -PHP_FLOAT as being "the largest magnitude,
> but negative".
>
> Perhaps:
>
> > Closest representable positive floating point number to zero. If you need
> the
> > negative number furthest from zero, use -PHP_FLOAT_MAX.
>
>
> Regards,
> --
> Rowan Collins
> [IMSoP]
>