Interactive hybrid cars resource
GreenHybrid Home - Hybrid Cars
Hybrid Cars Discussion Forums
Hybrid Articles
Hybrid Mileage Database & Car Specs
Hybrid Car Photo Gallery
Shopping Guide for Hybrid Cars


Go Back   GreenHybrid - Hybrid Cars > Hybrid Topics > Fuel Economy & Emissions
Register FAQ Members List Search Today's Posts Mark Forums Read

Fuel Economy & Emissions Talk about the mileage database, EPA, hypermiling, gas and driving strategy. 

Reply
 
Thread Tools Search this Thread
  #1 (permalink)  
Old 05-17-2004, 07:53 PM
3cyl 3cyl is offline
Enthusiast
 
Posts: 2
Default

I noticed the top car on the mileage chart is located in the UK. A gallon in the UK is an imperial gallon, about 1.2x a US gallon. Using an online calculator I found at http://hemsidor.torget.se/users/b/bohjohan...ert/conv2_e.htm his mean mileage comes to about 83 US mpg. Perhaps the database should have some way of adjusting for this, or did I miss mention of this somewhere else?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-17-2004, 07:57 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default

Yes. The database compensates for this. When you enter data, you can select "Imperial Gallons". The value is mathematically calculated and inserted in US gal in the database.

Code:
if ($_POST['mileage_unit2'] == 'liter') { $mileage = $mileage*3.785; } elseif ($_POST['mileage_unit2'] == 'imperialgallon') { $mileage = $mileage*1.201; }
There's some computer code for you. Basically says that if they select "liter", multiply by 3.785. If "imperial gallon", by 1.201.

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-17-2004, 08:00 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default

Oh, and I don't quite understand your conversion. That should be 83 Imperial gallons, methinks.

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-17-2004, 08:02 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default

Ah! Oh, no! I have it backwards!

It should be DIVIDING by 1.2

Great. Guess I better fix this and do some manual calculations to fix the data.

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-17-2004, 08:12 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default

I'm changing it to the following. I'll change his data so that I'm assuming he used kilometers and Imperial gallons. Is that a good assumption?

To interpret, ignore the $ and $_POST. Between {}s means "Do this". = is to define. == is to see if it's true.

Code:
$mileage = $_POST['mileage_integers'].'.'.$_POST['mileage_tenths']; if ($_POST['mileage_unit1'] == 'km') { $mileage = $mileage*1.609; } if ($_POST['mileage_unit2'] == 'liter') { $mileage = $mileage*3.785; } elseif ($_POST['mileage_unit2'] == 'imperialgallon') { $mileage = $mileage/1.201; } $mileage = round($mileage,1); if ($_POST['distance_unit'] == 'km') { $distance = round($_POST['distance']*1.609); } else { $distance = $_POST['distance']; }

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-17-2004, 08:20 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default

Okay. He's back in his rightful place. I didn't change the distances, as I really don't know if he used miles or kilometers. There isn't a significant difference.

I'll need to double check my code for future use. Thank you very much for pointing it out!

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-17-2004, 08:27 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default

On second thought, I'll probably change it as if he initially put KM because using 7 gallons on a tank isn't normal. The average for insights seems to be about 11.

Ooh! I need to do some heavy thinking tomorrow The data is all wrong for him, and I don't want to just delete it.

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-21-2004, 07:13 AM
aplumb aplumb is offline
Enthusiast
 
Location: Ottawa, Ontario, Canada
Posts: 2
Default

Just noticed these issues for myself; passed it on to Jason and he put up the notice to use miles and US Gallons.

For the benefit of those of us using metric:

1.0 litres = 0.264172051 US gallons
1.0 kilometer = 0.621371192 miles

Gotta love Google's built-in calculator!

Andrew.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-21-2004, 07:14 AM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default

Yes, for now. I'll fix it later today. But, it's really a mind boggler figuring out what to do with the numerator and denominator individually. Eek!

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-21-2004, 08:06 AM
aplumb aplumb is offline
Enthusiast
 
Location: Ottawa, Ontario, Canada
Posts: 2
Default

...and of course as an added wrinkle we don't actually measure fuel consumption performance in km/L. It's "L/100km"; on Google you can enter in something like:

50 miles per gallon in L/100km

...and get back...

50 miles per gallon = 4.70429169 L/100km

Or in my case as an example, my best ever trip I averaged 4.0L/100km on a 600km summer trip (from Ottawa to Kingston and back), average speed of 80km/h:

4.0 L/100km in miles per US gallon

...gives me...

4.0 L/100km = 58.8036461 miles per US gallon

So, all that is my long-winded way of saying, until Jason has the time iron out the bugs, those of us using other units can do the calculations via Google.

Great place you have here, Jason!

Andrew.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Topic Starter Forum Replies Last Post
Gas Light on with 2 Gallons Left? steve04 Honda Civic Hybrid 5 02-25-2006 08:17 AM
Toyota Billboard Marks 100 Million Gallons of Gas Saved by Driving Hybrids lkewin Journalism & The Media 7 12-12-2005 02:57 PM
Can you solve Barlow's Quandary? rjbarlow Fuel Economy & Emissions 25 11-10-2005 04:16 AM
Boston To Arlington on 81/2 gallons! ritak7 Fuel Economy & Emissions 11 08-05-2005 11:29 AM
Average gallons per tank Jason Toyota Prius 1 04-04-2004 06:07 PM


All times are GMT -7. The time now is 03:20 PM.



This website is made possible by people like you.
Thank you.


HOME   .   DISCUSS   .   LEARN   .   COMPARE   .   SHARE   .   SHOP

About      Press Release      Contact

Suggested Link      Promote Hybrids      Site Store




COPYRIGHT © 2005-2006 Internet Brands, Inc. | Privacy Policy

SEO by vBSEO 3.0.0