Easily convert currencies to and from the Aruban Florin (AWG) with our handy calculator. The Aruban Florin is the official currency of Aruba. It is pegged to the US Dollar at a rate of 1 USD = 1.75 AWG. This calculator can help you understand the value of your money when traveling to or doing business with Aruba.
US Dollar (USD)
Euro (EUR)
British Pound (GBP)
Aruban Florin (AWG)
Aruban Florin (AWG)
US Dollar (USD)
Euro (EUR)
British Pound (GBP)
.exchange-rate-calculator {
font-family: sans-serif;
border: 1px solid #ccc;
padding: 20px;
border-radius: 5px;
max-width: 400px;
margin: 20px auto;
}
.exchange-rate-calculator h2 {
text-align: center;
margin-bottom: 15px;
}
.input-section {
margin-bottom: 15px;
}
.input-section label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.input-section input[type="number"],
.input-section select {
width: calc(100% – 10px);
padding: 8px;
border: 1px solid #ccc;
border-radius: 3px;
}
.exchange-rate-calculator button {
display: block;
width: 100%;
padding: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
.exchange-rate-calculator button:hover {
background-color: #0056b3;
}
#result {
margin-top: 20px;
font-size: 1.1em;
text-align: center;
font-weight: bold;
color: #333;
}
function calculateExchangeRate() {
var amount = parseFloat(document.getElementById("amount").value);
var fromCurrency = document.getElementById("fromCurrency").value;
var toCurrency = document.getElementById("toCurrency").value;
if (isNaN(amount) || amount <= 0) {
document.getElementById("result").innerHTML = "Please enter a valid amount.";
return;
}
var exchangeRates = {
"USD": { "AWG": 1.75, "EUR": 0.92, "GBP": 0.79 },
"EUR": { "USD": 1.08, "AWG": 1.90, "GBP": 0.86 },
"GBP": { "USD": 1.27, "EUR": 1.16, "AWG": 2.21 },
"AWG": { "USD": 0.57, "EUR": 0.53, "GBP": 0.45 }
// Add more rates as needed. These are approximate and for example.
};
var result = 0;
var rate = 0;
if (fromCurrency === toCurrency) {
result = amount;
} else if (exchangeRates[fromCurrency] && exchangeRates[fromCurrency][toCurrency]) {
rate = exchangeRates[fromCurrency][toCurrency];
result = amount * rate;
} else if (exchangeRates[toCurrency] && exchangeRates[toCurrency][fromCurrency]) {
// Inverse calculation
rate = exchangeRates[toCurrency][fromCurrency];
result = amount / rate;
} else {
document.getElementById("result").innerHTML = "Conversion not available for selected currencies.";
return;
}
var formattedResult = result.toFixed(2);
document.getElementById("result").innerHTML = amount + " " + fromCurrency + " is equal to " + formattedResult + " " + toCurrency;
}