The cars on board computer tells you how many miles you can drive before you run out of gas. The computer knows how much gas is in the tank, to the tenth.
A few locations are starting to use that information. The data is read wirelessly. Happened to me in LA. The gas was shown on my receipts. I gave them almost a gallon of gas.