simple math computation..

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

 



the percent of 20% is = .20 right?
how can i compute the correct value for this?

my $totalCost is $4,000 and when i compute it to .20 using this method..

$shippingestimate = $totalCost * .20;

i get the value for the shippingestimate = $0.8 which is wrong.. it should $800
what seems to be wrong?

-- 
Louie Miranda
http://www.axishift.com

-- 
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