Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 11a34e4

Browse files
Added spacing in percent round string function (#8)
1 parent 3b38176 commit 11a34e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎general.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export function percentRoundString(value: number | string, decimals: number = 0,
202202
if (isNaN(value)) return "n/a";
203203
if (!isFinite(value)) return "0 %";
204204
if (isZeroToOne) value *= 100;
205-
if (!decimals) return Math.round(value) + '%';
205+
if (!decimals) return Math.round(value) + '%';
206206
const dec = 10 ** decimals;
207207
return Math.round(value * dec) / dec + ' %';
208208
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /