Here's how we get that:
* 1 gallon = 128 fluid ounces (this is standard)
* 1 fluid ounce = 1 dry ounce (in this case, we're assuming the context is dry measurement)
Therefore, 1 gallon = 128 dry ounces.