[SOLVED] Help with round()
Posted: Wed Apr 07, 2004 3:15 am
Hi guys..need some hint or help. I founf there were few examples of round function in php..but its not helping me much..
my question suppose to be pretty basic.
ie. I got the value of $price from mysql db.
and yeah..i got the right..but i need that to be rounded to nearest $0.50..ie..if $12.43 ..i need somehow it return $12.50...i know it might use round function..but not sure..thank a lot guys
my question suppose to be pretty basic.
ie. I got the value of $price from mysql db.
Code: Select all
$price = number_format($price,2);