1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-04 23:31:09 +00:00

Many minor fixes, updated b_e

This commit is contained in:
Harley White 2021-09-07 23:53:54 -04:00
parent 5180497c90
commit dccdae2f2a
6 changed files with 23 additions and 18 deletions
js/technical

View file

@ -1820,8 +1820,8 @@
var a = this;
var b = decimal;
//special case: if a is 0, then return 0
if (a.sign === 0) { return a; }
//special case: if a is 0, then return 0 (UNLESS b is 0, then return 1)
if (a.sign === 0) { return b.eq(0) ? FC_NN(1, 0, 1) : a; }
//special case: if a is 1, then return 1
if (a.sign === 1 && a.layer === 0 && a.mag === 1) { return a; }
//special case: if b is 0, then return 1
@ -1831,7 +1831,7 @@
var result = (a.absLog10().mul(b)).pow10();
if (this.sign === -1 && b.toNumber() % 2 === 1) {
if (this.sign === -1 && Math.abs(b.toNumber() % 2) === 1) {
return result.neg();
}
@ -2739,4 +2739,4 @@ for (var i = 0; i < 10; ++i)
return Decimal;
}));
}));