Hello! Gallons are a unit of volume, while inches are a unit of length — they cannot be directly converted into each other.
Could you let us know where exactly you're trying to switch between these units? In the User Center, you can switch between metric and imperial systems, which will automatically adjust relevant units accordingly.
Raiden