diff --git a/packages/shared/src/utils/format.ts b/packages/shared/src/utils/format.ts index f5e56b534..cc18f5669 100644 --- a/packages/shared/src/utils/format.ts +++ b/packages/shared/src/utils/format.ts @@ -4,7 +4,7 @@ export function formatMudPointCount(value: number, compact = false) { return `${(normalizedValue / 100_000_000).toFixed(1)}亿`; } if (compact && normalizedValue >= 10_000) { - return `${(normalizedValue / 10_000).toFixed(1)}万`; + return `${(Math.floor(normalizedValue / 1_000) / 10).toFixed(1)}万`; } return normalizedValue.toLocaleString('zh-CN'); }