From e9a5b753fa4621af4b1b301f23046b377a9f322b Mon Sep 17 00:00:00 2001 From: Akshat Verma <112319520+Akshat162001@users.noreply.github.com> Date: Wed, 4 Oct 2023 00:08:38 +0530 Subject: [PATCH] fixed :Floating Point Precision Problem #33 --- scripts/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/script.js b/scripts/script.js index 67931195..84e55820 100644 --- a/scripts/script.js +++ b/scripts/script.js @@ -14,7 +14,7 @@ function calculate(value) { res.value = ""; }, 1300); } else { - res.value = calculatedValue; + res.value = calculatedValue.toFixed(4); } }