Re: fdiv() function

From: Date: Fri, 04 Oct 2019 20:28:48 +0000
Subject: Re: fdiv() function
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-107373@lists.php.net to get a copy of this message
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() function. I'd prefer floatdiv() as name matching intdiv(), but wasn't aware fmod() is already a thing. So now I think fdiv() might be the slightly more consistent name. Regards, Niklas

« previous php.internals (#107373) next »