Skip to content

Commit 5c117ee

Browse files
jessealamaeemeli
andauthored
Update README.md
Co-authored-by: Eemeli Aro <eemeli@gmail.com>
1 parent e6687b1 commit 5c117ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ let exchangeRateEurToUsd = new Decimal(1.09);
8080
let amountInUsd = new Decimal(450.27);
8181
let exchangeRateUsdToEur = new Decimal(1).divide(exchangeRateEurToUsd);
8282
let amountInEur = exchangeRateUsdToEur.multiply(amountInUsd);
83-
let opts = { style: "currency", currency: "USD" };
83+
let opts = { style: "currency", currency: "EUR" };
8484
let formatter = new Intl.NumberFormat("en-US", opts);
8585
let amount = Decimal.Amount(amountInEur).with({ fractionDigits: 2 });
8686
console.log(formatter.format(amount));

0 commit comments

Comments
 (0)