From 1f53b7c9de6c444ae8944f29da96be167906df6d Mon Sep 17 00:00:00 2001 From: yxw <17074267@qq.com> Date: Thu, 23 Nov 2023 12:08:26 +0800 Subject: [PATCH] fix --- home.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/home.html b/home.html index 514e5d6..c290482 100644 --- a/home.html +++ b/home.html @@ -1365,9 +1365,9 @@ if (number == -0) { number = 0 } - console.log(number, lineinputValue.toFixed(1), typeof (number), typeof (lineinputValue)) - if (number != lineinputValue.toFixed(1) && isInput == false) { - changeInputValue('lineinput', number.toFixed(1)) + console.log(number, lineinputValue, typeof (number), typeof (lineinputValue)) + if (number != lineinputValue && isInput == false) { + changeInputValue('lineinput', number) } } @@ -1407,8 +1407,8 @@ if (number == -0) { number = 0 } - console.log(number, mic1Value.toFixed(1), typeof (number), typeof (mic1Value)) - if (mic1Value.toFixed(1) != number && isInput == false) { + console.log(number, mic1Value, typeof (number), typeof (mic1Value)) + if (mic1Value != number && isInput == false) { changeInputValue('mic1', number) } } @@ -1451,8 +1451,8 @@ if (number == -0) { number = 0 } - console.log(number, mic2Value.toFixed(1), typeof (number), typeof (mic2Value)) - if (mic2Value.toFixed(1) != number && isInput == false) { + console.log(number, mic2Value, typeof (number), typeof (mic2Value)) + if (mic2Value != number && isInput == false) { changeInputValue('mic2', number) } } @@ -1496,8 +1496,8 @@ if (number == -0) { number = 0 } - console.log(number, outputValue.toFixed(1), typeof (number), typeof (outputValue)) - if (outputValue.toFixed(1) != number && isInput == false) { + console.log(number, outputValue, typeof (number), typeof (outputValue)) + if (outputValue != number && isInput == false) { changeInputValue('output', number) } }