Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105045 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20318 invoked from network); 3 Apr 2019 15:44:49 -0000 Received: from unknown (HELO mail-it1-f170.google.com) (209.85.166.170) by pb1.pair.com with SMTP; 3 Apr 2019 15:44:49 -0000 Received: by mail-it1-f170.google.com with SMTP id s3so10782393itk.1 for ; Wed, 03 Apr 2019 05:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Kzoq/uFFfJs66U4Tr72516Nw/uQFYTaXF+73ELHzcUM=; b=hK8T0aJBB3/s6D86fXSuFWD4s6k0biA5Rgm9JfuDdiNluBSu3qRe6yycH89/TL+ss0 b4iA+dWLi8CxYMv9PJ42F65ZXqOR0EVdbeeBthzrEvq/CKWYenEJ6dRK7bxBJqlmELPy Njczuc3YH4Z3kgfnewVAoMsX5r0ovF4UBbPg8e+USePbTtl/6RIPmnB0z8gLccZG6wIA ljyTjVPqCb3RXr+ueTp0qOqPb+E1OfZLLMVxVSXwP8tUMAPI7oPBYsEbk0d6jiZElQCx Hzmr2jYdPLKHGuYkLyVojXJJHJ3mLAl7rpbS2hlrEVw2PTv3b7/nBdpME/4s4gWUJbmu QI7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Kzoq/uFFfJs66U4Tr72516Nw/uQFYTaXF+73ELHzcUM=; b=HyOyM/kEsi4m0arG79MJeeO4BQKdavw3oCRw7eXLk5YkCVsqZI/ieIcgFRBlSo61xi XXw9XGcOkEJPYbRJMKUIChSqcvBP3K1BOwM0WT9l53g6fuH38nXJZminT1rBEHC+gt2H 61e92WuHoLgB2WAEZbLy8ux6lJyU+Kr+ojzRfSttOh2zsmpU5FRSowP+drxxXoF/qsuS pud3mpSHbuGCicype/czPhF0fVWhM4nnWom4hp0gKuXBe+rLZ0coayFABzItPjpIE94L JyxuPwMKdFP3chBHPPJy/hr7+6u8WU+J1NbUzFhlIQ4MN7mztdxd5NN34cRlRe26cm2E V/xA== X-Gm-Message-State: APjAAAWssiHd+h8wPK3iFr7QLjdHn7rKaAcDds4r6AphH6TsXFrrPQ5m yZj144271GAChkJfDpePeo24yEw451HA1ESlSs3QKJOF X-Google-Smtp-Source: APXvYqzm2EiVMqmNjjxq6V/GOOlHtlDQKF+4FvbRn5j3nmkHtUybjLbdbTLDXu6VsofWnxLlGMzCoEJtC9etteehRsE= X-Received: by 2002:a02:3506:: with SMTP id k6mr450853jaa.41.1554295211968; Wed, 03 Apr 2019 05:40:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 3 Apr 2019 13:40:00 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="000000000000fc500705859f8dd1" Subject: Re: [PHP-DEV] PHP_FLOAT_MIN is positive From: rowan.collins@gmail.com (Rowan Collins) --000000000000fc500705859f8dd1 Content-Type: text/plain; charset="UTF-8" On Wed, 3 Apr 2019 at 13:33, Benjamin Morel 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] --000000000000fc500705859f8dd1--