Domain Name Forum  

Go Back   Domain Name Forum > Web Design & Development > Programming
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2012, 05:08 AM
jackwebso jackwebso is offline
Member
 
Join Date: Jun 2012
Posts: 34
Default 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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:34 AM.

| Webmaster Forum | | Domain Name Forum |



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