Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105038 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84390 invoked from network); 3 Apr 2019 13:32:07 -0000 Received: from unknown (HELO mail-wr1-f42.google.com) (209.85.221.42) by pb1.pair.com with SMTP; 3 Apr 2019 13:32:07 -0000 Received: by mail-wr1-f42.google.com with SMTP id r4so20573766wrq.8 for ; Wed, 03 Apr 2019 03:27:29 -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=O4AyGs9bEPwDdlSjLmdCBBeZZxvOGm36uWLfeusIDRo=; b=Or+HJV06R5MluzW54QAsapM53z0d8l2CaUH7uNvlE7qy24j6X0srgv4U0uQNlbL1+r CG0aumn+Fpus+5GcM8VQL/w7Q++OFFoxHmiLWpS1sf31g5aa3X5WHaeyGi1dEoKjp8Lu v5VkPjRc0CcIB7LSpSQWbAaK9coGOuohKYJ5pVA1dnd+5KjwgjxslzL9L0vLR1AE+jKh K9BwSHAz5J5xtOz3j6eQPRPDMjrM14DEuakqAtyQs/8qtPEEfRt3bRjwJXWTKFB7id3k axtYlaxH4Pat3L+Xsni2ZpUEFqhIKVa54f7Tl9L5qWCr3dUBeQf6E27R1/MPu3r5lDl3 bLCA== 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=O4AyGs9bEPwDdlSjLmdCBBeZZxvOGm36uWLfeusIDRo=; b=a0eZBFnC+o9Ap/XM8rRJds+o6GpDQ6jh9SDqVqQ/cmzhG82Nl9F+EAitJbXGTnZi+Z yErjMgw16li1OH7rffvQTLFx3/ZOaYhCSz+dbeTKauUHgAoK/hz1IUPQLJR/auVciSJx 6RBCM4oDWCJLPKMYHwOpQr1KD7KBLAdNVtffZbTeh1x6O31ckO6/KA533JpuV4EhiwSE ncn0XV+RU6CCFFMpah1RdmhFZloGJ1GMhk7ZzENof13VbXF5jV103jnowPOGJW/d2fcY TE4xeHyaOqLQh8Ug0IXVJqww+gr7uLiMFNWcGVnaJPJ0ySamaV6slpLAB+/QrgZz2w/2 7Fhg== X-Gm-Message-State: APjAAAXGyHbPfJMTwy+mVMuEEWULp5LI5ZKwsv272hKupHREHFpJp+yJ zWcmBonwxWXvHBK3yZj0l+5s1rmQ1VPhAT7XkzL2/crm X-Google-Smtp-Source: APXvYqxNrWGl+N8/GQ92LYdQ3xGOtSjIyrKGV96GFmYZaO9DzCKgcCw5+n05oLX+NwjNOyHyjqzyRDdQ+UHknu0Edn4= X-Received: by 2002:adf:ea0b:: with SMTP id q11mr26515917wrm.233.1554287248532; Wed, 03 Apr 2019 03:27:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 3 Apr 2019 11:27:17 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="00000000000053e98f05859db3c7" Subject: Re: [PHP-DEV] PHP_FLOAT_MIN is positive From: dafneves@gmail.com (Diogo Neves) --00000000000053e98f05859db3c7 Content-Type: text/plain; charset="UTF-8" It really don't make much sense: wrote: > Hi internals, > > I just used PHP_FLOAT_MIN for the first time, and was surprised that it is > the smallest **positive** number representable. Is this expected? > > This is unlike PHP_INT_MIN, which is the absolute smallest representable > integer, and as such is negative: > > echo PHP_INT_MIN; // -9223372036854775808 > echo PHP_FLOAT_MIN; // 2.2250738585072E-308 > > If it is intended, maybe the doc > should be clear > about this, at the moment it is just: > > Smallest representable floating point number. > > > Which is confusing IMO. > > Cheers, > Ben > --00000000000053e98f05859db3c7--