| 
 Posted by mat on 12/05/05 12:18 
Hi all, 
 
This is weird and it is driving me nuts, please can someone explain how  
I can get it to return the correct answer: 
 
print '$_SESSION["a"]: '.$_SESSION["a"].'<br />'; 
print '$_SESSION["c"]: '.$_SESSION["c"].'<br />'; 
print $_SESSION["c"]." - ".$_SESSION["a"].' =  
'.($_SESSION["c"]-$_SESSION["a"]); 
 
----------------- RETURNS ----------------------- 
 
$_SESSION["allowance"]: 200 
$_SESSION["cart_value"]: 200.15 
200.15 - 200 = 0.14999999999998 
 
When I test on my windows box it is correct, but not when I test on my  
Unix server. 
 
Your help would be *greatly* appreciated. 
 
mat
 
  
Navigation:
[Reply to this message] 
 |