We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4518d9a commit 8da1a28Copy full SHA for 8da1a28
1 file changed
extensions/ql-vscode/src/pure/number.ts
@@ -4,6 +4,12 @@
4
5
const numberFormatter = new Intl.NumberFormat('en-US');
6
7
+/**
8
+ * Formats a number to be human-readable with decimal places and thousands separators.
9
+ *
10
+ * @param value The number to format.
11
+ * @returns The formatted number. For example, "10,000", "1,000,000", or "1,000,000,000".
12
+ */
13
export function formatDecimal(value: number): string {
14
return numberFormatter.format(value);
15
}
0 commit comments