ID: 9843
Updated by: hholzgra
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To: 

theese are typical rounding errors that
occure when dealing with decimal fractions
on binary based machines

Previous Comments:

[2001-03-19 14:46:12] [EMAIL PROTECTED]
I believe there is a problem with the decrement operator.

$percentchange = .30;
while ($percentchange > -1){
  $percentchange -= .01;
  echo $percentchange;

zero is returned as -1.422473250301E-16 and 0.01 is returned as 0.0099999999999999. 
This seems incorrect to me.



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to