From 3512435e608a9ae205ce20662860f0166c86fb9f Mon Sep 17 00:00:00 2001 From: linzch3 <20380442+linzch3@users.noreply.github.com> Date: Mon, 23 Nov 2026 06:09:12 -0800 Subject: [PATCH] docs(util): correct percentage total in number helper comments --- src/util/number.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/number.ts b/src/util/number.ts index 662695f7f7..c69816e0a5 100644 --- a/src/util/number.ts +++ b/src/util/number.ts @@ -370,7 +370,7 @@ export function getAcceptableTickPrecision( /** * Get a data of given precision, assuring the sum of percentages - * in valueList is 1. + * in valueList is 100 when the total is nonzero. * The largest remainder method is used. * https://en.wikipedia.org/wiki/Largest_remainder_method * @@ -391,7 +391,7 @@ export function getPercentWithPrecision(valueList: number[], idx: number, precis /** * Get a data of given precision, assuring the sum of percentages - * in valueList is 1. + * in valueList is 100 when the total is nonzero. * The largest remainder method is used. * https://en.wikipedia.org/wiki/Largest_remainder_method *