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.504 AUD | ||
| 5.417 BRL | ||
| 1.376 CAD | ||
| 0.796 CHF | ||
| 7.046 CNY | ||
| 0.852 EUR | ||
| 0.747 GBP | ||
| 90.711 INR | ||
| 154.994 JPY | ||
| 17.97 MXN | ||
| 79.122 RUB | ||
| 16.828 ZAR |