From cfc5bc15b15aeb0cd5ffd06f65b14be5830ea04c Mon Sep 17 00:00:00 2001 From: macniel Date: Wed, 12 Nov 2025 19:09:07 +0100 Subject: [PATCH] fixes rounding issue --- src/module/handlebar-helpers/currency.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/handlebar-helpers/currency.mjs b/src/module/handlebar-helpers/currency.mjs index 3f83b42c..74304326 100644 --- a/src/module/handlebar-helpers/currency.mjs +++ b/src/module/handlebar-helpers/currency.mjs @@ -4,7 +4,7 @@ function currency(st) { // internally the price is always given in Silver // so we need to inflate the value of price by 100 to be able to divide beginning from Heller - const baseValue = st * 100 + const baseValue = Math.round(st * 100) // then we can regex over it