use truncation instead of rounding down or rounding to the nearest value when numerical calculations exceed precision limits

This commit is contained in:
MaysWind
2025-09-09 20:46:51 +08:00
parent d4603a1892
commit 7e2e1a4ad3
13 changed files with 36 additions and 36 deletions
+1 -1
View File
@@ -325,7 +325,7 @@ function confirm(): boolean {
finalValue = previous - current;
break;
case '×':
finalValue = Math.round(previous * current / 100);
finalValue = Math.trunc(previous * current / 100);
break;
default:
finalValue = previous;