fix bug on negative numebrs
This commit is contained in:
parent
a31a41bb94
commit
725dd2f41e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue