Re: [PHP-DEV] fmod() function

2002-02-21 Thread Graeme Merrall
> >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 ch

Re: [PHP-DEV] fmod() function

2002-02-21 Thread Andi Gutmans
At 09:57 AM 2/21/2002 -0500, Jon Parise wrote: >On Thu, Feb 21, 2002 at 08:08:28AM +0200, Andi Gutmans wrote: > > > Just realized now you're talking about doubles :) > > Never mind my previous Email... > >Would it be worth extending the engine to apply the fmod() >behavior to the % operator when o

Re: [PHP-DEV] fmod() function

2002-02-21 Thread Jon Parise
On Thu, Feb 21, 2002 at 08:08:28AM +0200, Andi Gutmans wrote: > Just realized now you're talking about doubles :) > Never mind my previous Email... Would it be worth extending the engine to apply the fmod() behavior to the % operator when operating on doubles? -- Jon Parise ([EMAIL PROTECTED]

Re: [PHP-DEV] fmod() function

2002-02-20 Thread Andi Gutmans
Just realized now you're talking about doubles :) Never mind my previous Email... Andi At 12:59 PM 2/21/2002 +1100, Graeme Merrall wrote: >I was porting some Python scripts to PHP and came across the fmod() >function. > >Since it's not implemented in PHP so I whipped up an fmod function for >inc

Re: [PHP-DEV] fmod() function

2002-02-20 Thread Andi Gutmans
You can do $a % $b to calculate the remainder. Andi At 12:59 PM 2/21/2002 +1100, Graeme Merrall wrote: >I was porting some Python scripts to PHP and came across the fmod() >function. > >Since it's not implemented in PHP so I whipped up an fmod function for >inclusion >into ext/standard/math.c wh

[PHP-DEV] fmod() function

2002-02-20 Thread Graeme Merrall
I was porting some Python scripts to PHP and came across the fmod() function. Since it's not implemented in PHP so I whipped up an fmod function for inclusion into ext/standard/math.c which I've pasted below. I can create a diff if necessary to include the 2 small changes to basic_functions.c an