Re: =.='' what wrong ? just simple code, however error.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It works as expected on my PHP 5.2.4


LKSunny napsal(a):
<?
$credithold = 100;
for($i=1;$i<=1000;$i++){
 $credithold -= 0.1;
 echo "$credithold<br />";
}
//i don't know why, when run this code, on 91.3 after expect is 91.2, however......91.200000000001
//who can help me ? and tell me why ?

//Thank You.
?>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux