From 1482d98b0306fd1d510c25fc91e3b83c7be565e4 Mon Sep 17 00:00:00 2001 From: Jack Ord <36296721+j-or@users.noreply.github.com> Date: Fri, 24 Sep 2021 09:05:07 +0200 Subject: [PATCH] Fix variable rounding error --- components/input-model/value-variable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/input-model/value-variable.tsx b/components/input-model/value-variable.tsx index edcc5c22..e54ef69c 100644 --- a/components/input-model/value-variable.tsx +++ b/components/input-model/value-variable.tsx @@ -51,7 +51,7 @@ export default function ValueVariable(props: ValueVariableProps) { fullWidth margin="dense" label="Min" - transform={e => parseInt(e)} + transform={e => parseFloat(e)} /> @@ -61,7 +61,7 @@ export default function ValueVariable(props: ValueVariableProps) { fullWidth margin="dense" label="Max" - transform={e => parseInt(e)} + transform={e => parseFloat(e)} />