View Single Post
Old 02-05-2009, 03:55 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

You could replace your code above with:
PHP Code:
echo sprintf('%0.1F'$row['cargo_11'] / 10); 
Salathe is offline  
Reply With Quote