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])
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 operating
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.
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
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 which
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