26.09.2012, 16:17
Well, what seems to be the problem with it then?
If your tank is 30 liters and you know the amount left in your tank is 20 liters then you can calculate the percentage of fuel left like this: percentageLeft = amountLeft/maxAmount * 100
If your tank is 30 liters and you know the amount left in your tank is 20 liters then you can calculate the percentage of fuel left like this: percentageLeft = amountLeft/maxAmount * 100