hi
i've seen this problem when i took a java class:
$x = 1.8;
$y = 1.2;
if($x>$y*1.5) exit();
the above code will exit even though $x = $y*1.5
the difference between the two is : 2.2204460492503E-16
does anyone know why this happens? and more importantly,
any ideas on how to deal with this?
thanks!
keith
i've seen this problem when i took a java class:
$x = 1.8;
$y = 1.2;
if($x>$y*1.5) exit();
the above code will exit even though $x = $y*1.5
the difference between the two is : 2.2204460492503E-16
does anyone know why this happens? and more importantly,
any ideas on how to deal with this?
thanks!
keith