Open this example in the interactive library
Source code
console.log(
new Intl.NumberFormat("en-CA", {
style: "currency",
currency: "CAD",
}).format(1234.5),
);
Sample output
$1,234.50

Open this example in the interactive library
console.log(
new Intl.NumberFormat("en-CA", {
style: "currency",
currency: "CAD",
}).format(1234.5),
);
$1,234.50