You might want to consider working with oz quantities and using integer math and only convert to gallons for printing if required. That also might make you math simpler as you might just be able to utilize a simple map() function to convert analogRead() count values to ounces. At least that is how I would approch it.