From 64c01e8feee26768080cfa60fbce6b967acb2c6d Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 27 Feb 2022 03:50:59 +0100 Subject: [PATCH] missing file --- backend/src/util/decimal.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 backend/src/util/decimal.ts diff --git a/backend/src/util/decimal.ts b/backend/src/util/decimal.ts new file mode 100644 index 000000000..3f32a850e --- /dev/null +++ b/backend/src/util/decimal.ts @@ -0,0 +1,8 @@ +import Decimal from 'decimal.js-light' + +Decimal.set({ + precision: 25, + rounding: Decimal.ROUND_HALF_UP, +}) + +export default Decimal