precents
This commit is contained in:
10
src/formaters.ts
Normal file
10
src/formaters.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export const iskFormater = new Intl.NumberFormat("is-IS", {
|
||||
style: "currency",
|
||||
currency: "ISK",
|
||||
minimumFractionDigits: 2,
|
||||
});
|
||||
|
||||
export const percentFormater = new Intl.NumberFormat("en-US", {
|
||||
style: "percent",
|
||||
minimumFractionDigits: 0
|
||||
});
|
||||
Reference in New Issue
Block a user