Re: [PHP-DEV] fdiv() function

2019-10-04 Thread Niklas Keller
Hi Nikita, > The fdiv() function will perform a floating-point division while treating > division by zero as a perfectly legal operation, and will not emit any kind > of diagnostic in that case. Instead it will return the INF/-INF/NAN result > mandated by IEEE-754. It mirrors the existing fmod() f

[PHP-DEV] fdiv() function

2019-10-02 Thread Nikita Popov
Hi internals, I would like to add an fdiv() function in PHP 8, implemented in https://github.com/php/php-src/pull/4769. Per https://wiki.php.net/rfc/engine_warnings the main division operation will switch to throwing DivisionByZeroError on division by zero. However, I think it is important to exp