Skip to content

Commit

Permalink
α 1.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Naruyoko committed Aug 8, 2020
1 parent 4277102 commit 7f90fef
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ExpantaNum.js
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,7 @@
x.layer=0;
return x;
}
if (Number.isInteger(x.layer)) x.layer=Math.floor(x.layer);
for (var i=0;i<x.array.length;++i){
var e=x.array[i];
if (e[0]===null||e[0]===undefined){
Expand All @@ -1085,6 +1086,8 @@
x.array=[[0,Infinity]];
return x;
}
if (!Number.isInteger(e[0])) e[0]=Math.floor(e[0]);
if (e[0]!==0&&!Number.isInteger(e[1])) e[1]=Math.floor(e[1]);
}
do{
if (ExpantaNum.debug>=ExpantaNum.ALL) console.log(x.toString());
Expand All @@ -1099,7 +1102,7 @@
}else if (x.layer&&x.array.length==1&&x.array[0][0]===0){
x.layer--;
if (x.array[0][1]===0) x.array=[[0,10]];
else x.array=[[0,10],[x.array[0][1],1]];
else x.array=[[0,10],[Math.floor(x.array[0][1]),1]];
b=true;
}
if (x.array.length<ExpantaNum.maxOps&&x.array[0][0]!==0) x.array.unshift([0,10]);
Expand Down
2 changes: 1 addition & 1 deletion ExpantaNum.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ![ExpantaNum.js](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/ExpantaNumJS.png) ![α](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/alpha.png) ![1](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/1.png) ![.](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/dot.png) ![3](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/3.png) ![.](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/dot.png) ![5](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/5.png)
# ![ExpantaNum.js](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/ExpantaNumJS.png) ![α](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/alpha.png) ![1](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/1.png) ![.](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/dot.png) ![3](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/3.png) ![.](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/dot.png) ![6](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/6.png)
[![NPM](https://img.shields.io/npm/v/expanta_num.js.svg)](https://www.npmjs.com/package/expanta_num.js)
A huge number library holding up to {10,9e15,1,2}.

Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# α 1.3.6 - 2020/08/07
* Fixed hang on `J<fraction>`.
* Fixed decimal array element.

# α 1.3.5 - 2020/07/11
* Added `0` times and `1` time logs case for `iteratedlog`.
* Fixed freezing on `"10{>MSI}10"`.
Expand Down

0 comments on commit 7f90fef

Please sign in to comment.