The US Dollars per Gallon calculator has functions that convert different currencies (e.g., Euros and Yuan) and volume units (e.g., liters) to and from US Dollars per Gallon. In doing so, it's making two unit conversions, first English to Metric, and then the currency exchange rate. The functions include the following:
The Math / Science
One US gallon is equal to 3.785411784 liters. That doesn't change. But the exchange rate between currencies is constantly in fluctuation. The following table shows the equivalent value of $1.00 (U.S. Dollars) in different currencies. These are the values used in this calculator.
For example, the formula to convert Euros per Liter to U.S. Dollars per Gallon is:
`DPG = EPL * (3.7854 " Liters")/(1.0 " U.S. Gallons") * ($1.0 " USD")/( "€ 0.852 EUR")`
where:
The following shows the current exchange rate (within the last two minutes).
| Currency | $1 USD Value | |
| 1.503 AUD | ||
| 5.412 BRL | ||
| 1.377 CAD | ||
| 0.796 CHF | ||
| 7.054 CNY | ||
| 0.852 EUR | ||
| 0.748 GBP | ||
| 90.544 INR | ||
| 155.825 JPY | ||
| 18.003 MXN | ||
| 80.047 RUB | ||
| 16.872 ZAR |