I keep the info in database as INT UNSIGNED
I have this simple function
function getPrice ($price) {
if (!$price)
return 'FREE';
else
return 'USD'.$price/100;
}
That works fine, however if the last digit is zero such as 990 it will return 9.9
What should I do for it to return 9.90?
Thanks