# xml fuel

## Recommended Posts

HiHave got a "mousearm" by trying to write a string for TOTAL FUEL QUANTITY.I could use a little helpof course i use something like this, but the value is still 0!:%((A:Total Fuel tank quantity, gallons) (A:Fuel weight per gallon, pounds per gallon) *)%!5d! What am i doing wrong? PH-JVH

##### Share on other sites
 Help AVSIM continue to serve you!Please donate today!

Have you checked Arne Bartel's xml guide?within the a_vars.txt there is listing.One of them isFUEL TOTAL QUANTITY WEIGHTis that of any help? BrgdsEugen

##### Share on other sites

Hi, thanksWhen i checked Bartels work i found this:%((A:Fuel total quantity, gallons) (A:Fuel weight per gallon, pounds per gallon) *)%!5d!Gives me exactly what i wanted.Was not far away PH-JVH

##### Share on other sites

>Hi >>Have got a "mousearm" by trying to write a string for TOTAL >FUEL QUANTITY. >I could use a little help >of course i use something like this, but the value is still >0!: >>%((A:Total Fuel tank quantity, gallons) (A:Fuel >weight per gallon, pounds per gallon) *)%!5d! >>What am i doing wrong? You are missing a % after 5d!Try this:((A:Fuel Total Capacity,gallons) (A:Fuel Total Quantity,gallons) - )%!4.2f!%

##### Share on other sites

Thanks Fr. Bill,Now i know how much fuel left.%((A:Fuel total quantity, gallons) *)%!5d! Do you have the formula for percentage?PH-JVH

##### Share on other sites

>Thanks Fr. Bill, >>Now i know how much fuel left. >>%((A:Fuel total quantity, gallons) *)%!5d! >>Do you have the formula for percentage? Percent fuel remaining would be = (100 - ((total fuel used)/(total fuel available))

## Create an account

Register a new account

• Tom Allensworth,
Founder of AVSIM Online

• ### Hot Spots

• Flight Simulation's Premier Resource!

AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!