6.26 评审配置最高分精度问题

This commit is contained in:
jl-zhoujl2
2023-06-26 13:38:55 +08:00
parent 9938b258e9
commit 8d60ddbc8d

View File

@ -17,7 +17,7 @@ export const checkUnEmp = (val: any) => {
//计算一个table的最高分
export const subCountScore = (subData: any) => {
const mul = 10 ^ 5;
const mul = 10 ** 5;
const sum = subData?.detailList?.reduce((preValue: any, item: any) => { return preValue + item.highScore * mul }, 0);
return Math.round(sum) / mul;
}