From 725dd2f41e0003341bf3dcf85a582de8669747f3 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 10 Mar 2025 05:33:05 -0400 Subject: [PATCH] fix bug on negative numebrs --- docs/js/num.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/js/num.js b/docs/js/num.js index cf25cbe..04d33f7 100644 --- a/docs/js/num.js +++ b/docs/js/num.js @@ -15,7 +15,7 @@ function numify(x) { } else if (x == 0 || isNaN(x) || Math.abs(x) == Infinity) { return `${x}`; } else if (x < 0) { - return `-${numify(x)}` + return `-${numify(-x)}` } else if (x < 1) { return `1/${numify(1 / x)}` } else if (il > illions.length - 1) {