Re: PHP_FLOAT_MIN is positive

From: Date: Wed, 03 Apr 2019 12:40:00 +0000
Subject: Re: PHP_FLOAT_MIN is positive
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-105045@lists.php.net to get a copy of this message
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]

« previous php.internals (#105045) next »