Re: fmod() function

From: Date: Thu, 21 Feb 2002 15:22:23 +0000
Subject: Re: fmod() function
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-80273@lists.php.net to get a copy of this message
> >Would it be worth extending the engine to apply the fmod() > >behavior to the % operator when operating on doubles? > > I don't think so, it would be quite a weird BC bug. I don't remember any > > complaints about its current behavior in the past few years so I don't > > think it's worth changing. FYI I'm porting some C/Python classes which are used for astronomical calculations (amateur astronomers may know of Meeus). I considered just rolling my own fmod() function in PHP but one look at the function in the glibc source scared the bejesus out of me :) On the other hand, eventually getting a goodly chunk of the match functions from glibc into PHP must be a 'good thing' I guess. Cheers, Graeme

« previous php.dev (#80273) next »