Most gas tanks have the ends of the cylinders rounded out while most jars are rounded in. Combine that with the yard stick giving a false reading and you have an inaccurate solution.

If the tank is exactly 100 gallons then accuracy shouldn't be a problem using my method. Plus, this method will work with any shape tank, making it more applicable to the real world.