We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6687b1 commit 5c117eeCopy full SHA for 5c117ee
README.md
@@ -80,7 +80,7 @@ let exchangeRateEurToUsd = new Decimal(1.09);
80
let amountInUsd = new Decimal(450.27);
81
let exchangeRateUsdToEur = new Decimal(1).divide(exchangeRateEurToUsd);
82
let amountInEur = exchangeRateUsdToEur.multiply(amountInUsd);
83
-let opts = { style: "currency", currency: "USD" };
+let opts = { style: "currency", currency: "EUR" };
84
let formatter = new Intl.NumberFormat("en-US", opts);
85
let amount = Decimal.Amount(amountInEur).with({ fractionDigits: 2 });
86
console.log(formatter.format(amount));
0 commit comments