Yup, I just grabbed a checkout and its fixed.
That was a weird one.

Regards
Mike Robinson


Derick Rethans wrote:

> Hello,
> 
> I could reproduce this with pre1, but latest CVS works fine 
> again. Can 
> you try?
> 
> Derick
> 
> 
> On Thu, 17 Oct 2002, Mike Robinson wrote:
> 
> > <?php
> >   printf("%01.2f",-2999/100);
> >   echo "<br>";
> >   printf("%01.2f",-3000/100);
> >   echo "<br>";
> >   printf("%01.2f",-3000/100);
> >   echo "<br>";
> >   printf("%01.2f",-3000/100);
> >   echo "<br>";
> >   printf("%01.2f",-3001/100);
> >   echo "<br>";
> >   printf("%01.2f",-3000/100);
> > ?>
> > 
> > 4.2.3 output:
> > -29.99
> > -30.00
> > -30.00
> > -30.00
> > -30.01
> > -30.00
> > 
> > 4.3.0pre1 output:
> > -29.99
> > 296.14
> > 0.00
> > 0.00
> > -30.01
> > 296.14
> > 
> > If I comment out one or more of the printf()'s that use 
> -3000/100, but 
> > not all of them, I can get the returned output of the 
> others to change 
> > to all sorts of neat things (just never -30.00). At one 
> point one of 
> > them output 3245234172.00. This is on a stock redhat8 box.
> > 
> > Regards
> > Mike Robinson
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> --
> 
> --------------------------------------------------------------
> -------------
>  Derick Rethans                                   
> http://derickrethans.nl/ 
>  JDI Media Solutions
> 
> --------------[ if you hold a unix shell to your ear, do you 
> hear the c? ]-
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to