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 constants for obtaining those values, and the standard IEEE 754 operations which produce these values are implemented (1/0 for INF, 0/0 for NAN, etc.)

--
Andrea Faulds
https://ajf.me/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to