fix bug on negative numebrs

This commit is contained in:
biglyderv 2025-03-10 05:33:05 -04:00
parent a31a41bb94
commit 725dd2f41e
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5

View file

@ -15,7 +15,7 @@ function numify(x) {
} else if (x == 0 || isNaN(x) || Math.abs(x) == Infinity) { } else if (x == 0 || isNaN(x) || Math.abs(x) == Infinity) {
return `${x}`; return `${x}`;
} else if (x < 0) { } else if (x < 0) {
return `-${numify(x)}` return `-${numify(-x)}`
} else if (x < 1) { } else if (x < 1) {
return `1/${numify(1 / x)}` return `1/${numify(1 / x)}`
} else if (il > illions.length - 1) { } else if (il > illions.length - 1) {