From 29549065e67ac418bc42e40431c44b7589151f29 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Mon, 19 Dec 2022 20:34:08 +0530 Subject: [PATCH] Fixed calculation --- js/fullscreenForm.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/fullscreenForm.js b/js/fullscreenForm.js index 64307d5..11230ad 100644 --- a/js/fullscreenForm.js +++ b/js/fullscreenForm.js @@ -136,6 +136,10 @@ value = textList[i] * base_units[textList[i + 1]]; counter += 1; } + else{ + value = parseFloat(textList[i]); + counter = counter + 1; + } } else { for (var j = 0; j < Object.keys(base_units).length; j++) { var result = textList[i].split(Object.keys(base_units)[j]); @@ -159,6 +163,7 @@ function parse_flodata(flodata) { + debugger; if (flodata.slice(0, 5) == 'text') { flodata = flodata.split('text:')[1]; }