diff --git a/.github/CLA.md b/.github/CLA.md index f8b1d55c25f9..549256d3a01f 100644 --- a/.github/CLA.md +++ b/.github/CLA.md @@ -131,3 +131,4 @@ Example: - Samuel Golmann, @goldsam, 2024/07/29 - satoren, @satoren, 2024/08/09 - Nikita Minaev, @majula2111, 2024/09/26 +- Oleg, @OlegDev1, 2024/12/03 diff --git a/packages/affine/data-view/src/core/statistics/number.ts b/packages/affine/data-view/src/core/statistics/number.ts index 57764fbf2838..c7c06fd825d0 100644 --- a/packages/affine/data-view/src/core/statistics/number.ts +++ b/packages/affine/data-view/src/core/statistics/number.ts @@ -15,7 +15,9 @@ export const numberStatsFunctions: StatisticsConfig[] = [ if (numbers.length === 0) { return 'None'; } - return numbers.reduce((a, b) => a + b, 0).toString(); + return parseFloat( + numbers.reduce((a, b) => a + b, 0).toFixed(2) + ).toString(); }, }), createStatisticConfig({