Re: [PHP-DEV] Re: Constants for better double edge case handling

2016-10-19 Thread Andrea Faulds
Hi, Anatol Belski wrote: Anatol Belski wrote: Producing INF. There's currently no explicit way to produce INF and NAN, whereby NAN is gettable with sqrt(-1). echo PHP_DBL_MAX*PHP_DBL_MAX, " ", -PHP_DBL_MAX*PHP_DBL_MAX; INF -INF I'm not sure I understand this use-case. We already have the

RE: [PHP-DEV] Re: Constants for better double edge case handling

2016-10-19 Thread Anatol Belski
Hi Andrea, > -Original Message- > From: Andrea Faulds [mailto:a...@ajf.me] > Sent: Wednesday, October 19, 2016 2:49 PM > To: internals@lists.php.net > Subject: [PHP-DEV] Re: Constants for better double edge case handling > > Hi Anatol, > > Anatol Belski wrote:

[PHP-DEV] Re: Constants for better double edge case handling

2016-10-19 Thread Andrea Faulds
Hi Anatol, Anatol Belski wrote: Producing INF. There's currently no explicit way to produce INF and NAN, whereby NAN is gettable with sqrt(-1). echo PHP_DBL_MAX*PHP_DBL_MAX, " ", -PHP_DBL_MAX*PHP_DBL_MAX; INF -INF I'm not sure I understand this use-case. We already have the INF and NAN