Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105047 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56373 invoked from network); 3 Apr 2019 18:26:40 -0000 Received: from unknown (HELO mail-wr1-f46.google.com) (209.85.221.46) by pb1.pair.com with SMTP; 3 Apr 2019 18:26:40 -0000 Received: by mail-wr1-f46.google.com with SMTP id y13so21957959wrd.3 for ; Wed, 03 Apr 2019 08:22:05 -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 :cc; bh=tsfKVd9UqsvcKNKkf1UY2ExXzww7Vf7rIJF3UH8I+NQ=; b=uWEfM2ynEfhje82AYmgoy0DwiZT8hM/r3jPXY2TbRZJ2Alv8+j5BQPK5qY75Y1rDA/ IJKSfTPyOx2bgKzx+nKufEK0Ye4nVFPks7c041Qio8jkKlz3CapuU2rSACeX3jToVoCQ NKSJmlaZSkjhH3vcuOInwLMCbjEzxZl8f7VlNCad4LmZKAV/f2v0+BOUQ6S9F5P4ULwn dmzc35hBGXE3YUiPXlbeePwzXI0rjrAZhmayW5zHJP2kItpIQIOEMuczcG4HkaR7fZru MQa9FEeRREZyhlxamNo9/P2a3w3voBlysihF0qMSw3Q5GkZFkhGIGkO2EN7cSMxXWm6J k7AA== 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:cc; bh=tsfKVd9UqsvcKNKkf1UY2ExXzww7Vf7rIJF3UH8I+NQ=; b=W/hrCMGCurIoIE/ZBb6jNlNZGXMxtmq8CB1KFKgfLgJisroUu/+gscmF+VNoaF33jN tUwKPe7WJGAvZdKPs0LPNrKmW9GQjOOshXo48+4n0IpZnIMhWJ1W3yCJVOYDQ5O0yPTL yekMOljpYtTqNVd86XrA0SvJozoFi538n0QM3a0fCw+HlCH6w53kbPc6IVhqBrE38b4U gYFKQnf8YM3P8Lv8PSufVK76wwzPRH51d+XEALBARpKYJWectqP40B/57SJ4nH9TBvCU 5mwETibS9sUcf+Rwy1Pkvn5CD0TfYx5ViaioZnDBCNe47h/JGmWofKFrjni4dCFmbwdn aeIQ== X-Gm-Message-State: APjAAAUFiUHb1N5puFdpMk5kHZMA8CMjxgwcQLS+FB0YFDzsbkqQBL+j Iuk+mN0aL+lowVygyFG98aBUChVJNKP7Imncl+M= X-Google-Smtp-Source: APXvYqxG6xD3zk7TL8ByB52C13KmpYFiUjewavo/SznGW0QZDVzUBojH3D+c/Y4+iApXCUs3uW6bW+U25IjK86gCGy8= X-Received: by 2002:a5d:6b04:: with SMTP id v4mr60773wrw.69.1554304924822; Wed, 03 Apr 2019 08:22:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 3 Apr 2019 17:21:52 +0200 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000eab2570585a1d063" Subject: Re: [PHP-DEV] PHP_FLOAT_MIN is positive From: krakjoe@gmail.com (Joe Watkins) --000000000000eab2570585a1d063 Content-Type: text/plain; charset="UTF-8" Thanks for explain. Cheers Joe On Wed, 3 Apr 2019 at 14:40, Rowan Collins wrote: > 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] > --000000000000eab2570585a1d063--