...

View Full Version : rounding numbers



techker
01-09-2010, 10:15 PM
hey guys in my database of my catalogue i have a table called order details.

in there there is orderis tax1 tax2 grand total

now when i echo the query to print it shows all the decimals

12.3336

how can i get it down to 12.33?thx

JAY6390
01-09-2010, 10:22 PM
http://www.php.net/round

techker
01-10-2010, 12:47 AM
done thx

echo round($row3['Taxe2'], 2);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum