litres conversion changed? - Fuelly Forums

Click here to see important news regarding the aCar App

Go Back   Fuelly Forums > Fuelly Community Support > Fuelly Web Support and Community News
Today's Posts Search Click Here to Login
Reply
 
Thread Tools Display Modes
 
Old 02-03-2011, 11:17 PM   #1
Registered Member
 
Join Date: Nov 2010
Posts: 13
Country: United Kingdom
Location: Birmingham
litres conversion changed?

Has the accuracy of the litres conversion been downgraded? I've noticed that my fuel-ups have suddenly started appearing as 16.001, 39.001 litres etc. They were all displaying correctly until today, I'm certain?
It was much better recently (I was the person who suggested using more dp in the conversion late last year). Please could the extra accuracy be restored?
__________________

mrtickle is offline   Reply With Quote
Old 02-03-2011, 11:26 PM   #2
Registered Member
 
Join Date: Nov 2010
Posts: 13
Country: United Kingdom
Location: Birmingham
As an example my last fuel up of 16 litres after travelling 141 miles gives me 39.977 miles/UK-gallon. Fuelly is currently showing this as "40.1" MPG :-(
__________________

mrtickle is offline   Reply With Quote
Old 02-04-2011, 12:19 AM   #3
pb
Senior Member
 
Join Date: Jul 2008
Posts: 1,588
Country: United States
Location: Corvallis, OR
We store everything as US units in the database and convert them for display. In that process of converting from gallons to liters, we lose some precision. There's no way around that without completely restructuring the way we store data.
pb is offline   Reply With Quote
Old 02-04-2011, 12:20 AM   #4
pb
Senior Member
 
Join Date: Jul 2008
Posts: 1,588
Country: United States
Location: Corvallis, OR
And no, we haven't made any changes recently that would affect how things work, so there's no reason for a sudden change.
pb is offline   Reply With Quote
Old 02-04-2011, 03:48 AM   #5
Registered Member
 
Join Date: Nov 2010
Posts: 13
Country: United Kingdom
Location: Birmingham
After the 'rounding errors' thread from November (http://www.fuelly.com/forum/mrtickle/comments), Fuelly was changed to add slightly more precision to that conversion without needing to restructure the data. It was a neat solution which worked really well!

Between then and recently, all the fuelups that were whole litres were showing as .000 litres on the website. (I'm sorry but I don't know how to link back to that thread any other way - I think there was a reply by me saying that the change worked well).

Now the same entries have gone back to the pre-November behaviour.
mrtickle is offline   Reply With Quote
Old 02-04-2011, 04:07 AM   #6
Registered Member
 
Join Date: Nov 2010
Posts: 13
Country: United Kingdom
Location: Birmingham
Sorry for the double-post - here's the link

http://www.fuelly.com/forum/618/Rounding-errors

I saw the accuracy issue fixed on the site from a few days after that thread, all the way through December and January. (I started this thread as I assumed you had implemented that idea and then something had accidentally rolled it back out).
mrtickle is offline   Reply With Quote
Old 02-04-2011, 05:37 AM   #7
pb
Senior Member
 
Join Date: Jul 2008
Posts: 1,588
Country: United States
Location: Corvallis, OR
No, we didn't ever implement the changes discussed in that thread. And we haven't changed anything recently.

I don't remember offhand the results of my tests, but I know I was concerned about increasing the size of the database through that change. I'm not sure that slightly increasing the accuracy is worth the extra storage required.

Did you recently edit some of the fuel-ups where you're seeing the problem? On editing, the units go through more conversions: once to display for editing, and then again as it goes back into the db. That can further degrade the accuracy for non-US units.
pb is offline   Reply With Quote
Old 02-06-2011, 03:20 AM   #8
Registered Member
 
Join Date: Nov 2010
Posts: 13
Country: United Kingdom
Location: Birmingham
Interesting - yes, I did certainly edit some of them. I didn't realise that just adding a note would would change the value of fuel as well. But thanks for shedding light on why it's happening!

I have deleted the fuelups that I edited, and re-entered them. The "Fuel-up added! Details: " confirmation section displays the fuel to 3dp just as I entered them. But the main page of my car doesn't manage to do that. Perhaps the Details: section isn't reading back out from the Db (just displaying the fields from the form) and the main car page is reading the twice converted value? If so, then that would explain why I thought you'd increased the accuracy back in Nov.
__________________

mrtickle is offline   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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


» Fuelly Android Apps
Powered by vBadvanced CMPS v3.2.3


All times are GMT -8. The time now is 04:41 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.