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.922 EUR")`
where:
The following shows the current exchange rate (within the last two minutes).
Currency | $1 USD Value | |
1.592 AUD | ||
5.749 BRL | ||
1.431 CAD | ||
0.879 CHF | ||
7.243 CNY | ||
0.922 EUR | ||
0.771 GBP | ||
85.536 INR | ||
148.88 JPY | ||
20.429 MXN | ||
84.945 RUB | ||
18.414 ZAR |
No comments |