From 6e287280a4e07f62d8d292b46301f4e1d1d2e5e3 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 17 Oct 2022 01:09:37 -0400 Subject: [PATCH] Update toPercent docs with locale --- src/utils/number.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/number.ts b/src/utils/number.ts index 20479fa9a4..71d1129883 100644 --- a/src/utils/number.ts +++ b/src/utils/number.ts @@ -5,6 +5,7 @@ function toLocaleStringSupportsOptions() { /** * Gets the value of a number formatted as a perentage. * @param {number} value The value as a number. + * @param {string} locale The locale to use for formatting (i.e. en-us). * @returns {string} The value formatted as a percentage. */ export function toPercent(value: number | null | undefined, locale: string): string {