From 5ac1a34d0bbb20dacb2b956282ab221a10e19ef2 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Mon, 18 Nov 2024 18:58:19 +0200 Subject: [PATCH] Created $lib/util/fpa.ts file with NumberToFPA --- src/lib/util/fpa.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/lib/util/fpa.ts diff --git a/src/lib/util/fpa.ts b/src/lib/util/fpa.ts new file mode 100644 index 0000000..df8110a --- /dev/null +++ b/src/lib/util/fpa.ts @@ -0,0 +1,5 @@ + + +export const NumberToFPA = (value: number): string => { + return (value / 100).toFixed(2); +}