fix: Issues #246 done.

This commit is contained in:
chiayin
2024-03-14 16:42:39 +08:00
parent fd49c8a414
commit 1b813584c0

View File

@@ -583,6 +583,9 @@ export default {
let x = index === 0 ? Math.floor(value * 100) / 100 : let x = index === 0 ? Math.floor(value * 100) / 100 :
index === values.length - 1 ? value = Math.ceil(value * 100) / 100 : index === values.length - 1 ? value = Math.ceil(value * 100) / 100 :
Math.round(value * 100) / 100; Math.round(value * 100) / 100;
// 處理科學記號等格式轉換
// Decimal 無法處理超過 16 位數
x = new Intl.NumberFormat(undefined, {useGrouping: false}).format(x);
return x return x
} }
}) })