Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96442 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53481 invoked from network); 18 Oct 2016 19:15:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2016 19:15:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:45182] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/C2-40890-0E476085 for ; Tue, 18 Oct 2016 15:15:44 -0400 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id 6EEDC784A0B; Tue, 18 Oct 2016 21:15:41 +0200 (CEST) Received: from w530phpdev (p57A878CB.dip0.t-ipconnect.de [87.168.120.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id 36AA37849D0; Tue, 18 Oct 2016 21:15:39 +0200 (CEST) To: "'Kalle Sommer Nielsen'" Cc: "'PHP Internals'" , "'Davey Shafik'" , "'Joe Watkins'" References: <073601d2296f$f27135e0$d753a1a0$@belski.net> In-Reply-To: Date: Tue, 18 Oct 2016 21:15:35 +0200 Message-ID: <073901d22974$0332ed20$0998c760$@belski.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQLlDuGb9gOgPljy9Dd28b2S9fYVaAHkralhnnmj0NA= Content-Language: en-us Subject: RE: [PHP-DEV] Constants for better double edge case handling From: anatol.php@belski.net ("Anatol Belski") Hi Kalle, > -----Original Message----- > From: kalle.php@gmail.com [mailto:kalle.php@gmail.com] On Behalf Of = Kalle > Sommer Nielsen > Sent: Tuesday, October 18, 2016 9:05 PM > To: Anatol Belski > Cc: PHP Internals ; Davey Shafik = ; Joe > Watkins > Subject: Re: [PHP-DEV] Constants for better double edge case handling >=20 > Hi Anatol >=20 > 2016-10-18 20:46 GMT+02:00 Anatol Belski : > > Hi, > > > > I would like to suggest adding the following constants > > > > REGISTER_MAIN_LONG_CONSTANT("PHP_DBL_DIG", DBL_DIG, > > CONST_PERSISTENT | CONST_CS); > > REGISTER_MAIN_DOUBLE_CONSTANT("PHP_DBL_MAX", DBL_MAX, > > CONST_PERSISTENT | CONST_CS); > > REGISTER_MAIN_DOUBLE_CONSTANT("PHP_DBL_MIN", DBL_MIN, > > CONST_PERSISTENT | CONST_CS); > > REGISTER_MAIN_DOUBLE_CONSTANT("PHP_DBL_EPSILON", DBL_EPSILON, > > CONST_PERSISTENT | CONST_CS); > > >=20 > I like this idea but I do think that we should name them PHP_DOUBLE_* = or > PHP_FLOAT_* (preferably the first). >=20 Ah, indeed. PHP_FLOAT_* is what is consistent, probably. Thanks Anatol