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
+2 -2
View File
@@ -2187,9 +2187,9 @@ export function useI18n() {
}
if (accountsBalance[i].isAsset) {
totalBalance += Math.floor(balance);
totalBalance += Math.trunc(balance);
} else if (accountsBalance[i].isLiability) {
totalBalance -= Math.floor(balance);
totalBalance -= Math.trunc(balance);
}
}
}