Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Programming (http://www.domainnameforum.org/forumdisplay.php?f=18)
-   -   Divide miles, speed time formatting (http://www.domainnameforum.org/showthread.php?t=153235)

jackwebso 10-16-2012 06:08 AM

Divide miles, speed time formatting
 
Hi, I am trying to display in minutes, instead of 0.2 hr etc
like the example below will do, now I know every .1 = 6 min
I am just stumped on how to get this to display 12 minutes.

PHP Code:
$sum = round(11 / 55,1);// example 11 miles
echo $sum;
I am trying to display things in minutes only when under 1 hour
Anyone know how to multiply just that number after the decimal by 6?


All times are GMT -4. The time now is 02:42 PM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.