Hi Kalle, > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of Kalle > Sommer Nielsen > Sent: Tuesday, October 18, 2016 9:05 PM > To: Anatol Belski <[email protected]> > Cc: PHP Internals <[email protected]>; Davey Shafik <[email protected]>; Joe > Watkins <[email protected]> > Subject: Re: [PHP-DEV] Constants for better double edge case handling > > Hi Anatol > > 2016-10-18 20:46 GMT+02:00 Anatol Belski <[email protected]>: > > 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); > > > > I like this idea but I do think that we should name them PHP_DOUBLE_* or > PHP_FLOAT_* (preferably the first). > Ah, indeed. PHP_FLOAT_* is what is consistent, probably.
Thanks Anatol -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
