Reply to Missing 0.0000001 - driving me crazy - help!

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация