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) {