chibul
02-08-2010, 01:40 AM
Trying to modify this code slightly to allow the returned value to be in decimal format.
$min=number_format(mysql_result($result,$i,"minutes"));
In this instance, the value in the database is 40.5, but is returning as 41. What do I need to add to that line of code to get it to display correctly as 40.5?
$min=number_format(mysql_result($result,$i,"minutes"));
In this instance, the value in the database is 40.5, but is returning as 41. What do I need to add to that line of code to get it to display correctly as 40.5?