Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
Right guys, i'm stumped. After nearly a day searching the internet on how MPG works, i'm resorted to asking here.
Basically i'm revamping my fuel system and am adding in mpg & fuel capacity for each vehicle, so far I've got the mileage system working, but how would I go about getting the MPG from the mileage?
What would the formula be?
Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
Going to have to bump this, need help on the matter.
Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
Ah right. You'll have to excuse me cause i'm a newbie when it comes to complex maths.
So basically the above code will give me the miles per gallon of say a Sultan? I would just times the mileage of the car with the miles per gallon that's in my array?
Posts: 74
Threads: 5
Joined: Mar 2014
Reputation:
0
i should notice that this is madeup as i'm writing the quick replys so it could be that it dosen't work
Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
Oh, right. Well just added a temp string to see what the MPG actually was, says it's 3529 but the set MPG for the vehicle I was in was 38.
Need to figure out to make it do the MPG that is in the array now.