From a28e6b08ba08e841bdf5ae2fc52ded7143087a8d Mon Sep 17 00:00:00 2001 From: TehBrian Date: Sun, 21 Jul 2024 20:46:13 -0400 Subject: [PATCH] round money on import --- src/lib/Stage1.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Stage1.svelte b/src/lib/Stage1.svelte index 1929a34..aa0061b 100644 --- a/src/lib/Stage1.svelte +++ b/src/lib/Stage1.svelte @@ -46,7 +46,7 @@ fillerFilledBottles } = save); - money = new Decimal(save.money); + money = new Decimal(save.money).toDecimalPlaces(2, Decimal.ROUND_HALF_UP); lastAutoSale = null; lastFill = null; }