From 07c6ca839fbb970f19cb546b88d42d1c42f3dc85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 1 Dec 2023 17:56:16 +0800 Subject: [PATCH] hotfix/2.9.9.2312.01 --- pc4mobx/hrmSalary/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc4mobx/hrmSalary/util/index.js b/pc4mobx/hrmSalary/util/index.js index 9be126dc..65a739ff 100644 --- a/pc4mobx/hrmSalary/util/index.js +++ b/pc4mobx/hrmSalary/util/index.js @@ -119,7 +119,7 @@ export const padding0 = (num, length) => { }; export const toDecimal_n = (x, num) => { if (isNaN(parseFloat(x))) return false; - let f = Math.round(x * 100) / 100; + let f = Math.round(x * Math.pow(10, num)) / Math.pow(10, num); let s = f.toString(); let rs = s.indexOf("."); if (rs < 0) {