Format isk
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
export const iskFormater = new Intl.NumberFormat("is-IS", {
|
||||
style: "currency",
|
||||
currency: "ISK",
|
||||
const iskFormater = new Intl.NumberFormat("is-IS", {
|
||||
minimumFractionDigits: 2,
|
||||
});
|
||||
|
||||
export const formatIsk = (value: number | bigint) => iskFormater.format(value) + " ISK";
|
||||
|
||||
export const percentFormater = new Intl.NumberFormat("en-US", {
|
||||
style: "percent",
|
||||
minimumFractionDigits: 0
|
||||
|
||||
Reference in New Issue
Block a user