Skip to content

Commit

Permalink
0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Naruyoko committed Mar 24, 2020
1 parent f6a9b74 commit d44022c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions OmegaNum.js
Original file line number Diff line number Diff line change
Expand Up @@ -1042,10 +1042,11 @@
if (this.array.length>=2){
for (var i=this.array.length-1;!b&&i>=2;--i){
var x=this.array[i];
if (applyToOpNums&&i==this.array.length-1&&x>=m){
if (applyToOpNums&&x>=m){
++i;
b=x;
}if (applyToOpNums&&this.array[i-1]>=m){
x=1;
}else if (applyToOpNums&&this.array[i-1]>=m){
++x;
b=this.array[i-1];
}
Expand Down
3 changes: 1 addition & 2 deletions OmegaNum.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 @@
# ![OmegaNum.js](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/OmegaNumJS.png) ![0](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/0.png) ![.](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/dot.png) ![4](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/4.png) ![.](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/dot.png) ![0](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/0.png)
# ![OmegaNum.js](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/OmegaNumJS.png) ![0](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/0.png) ![.](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/dot.png) ![4](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/4.png) ![.](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/dot.png) ![1](https://raw.githubusercontent.com/Naruyoko/OmegaNum.js/non-code/1.png)
[![NPM](https://img.shields.io/npm/v/omega_num.js.svg)](https://www.npmjs.com/package/omega_num.js)
A huge number library holding up to 10{1000}9e15.

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.4.1 - 2020/03/23
* Fixed `toStringWithDecimalPlaces` giving wrong iterations if the strongest operator is above maximum of places and `applyToOpNums` is enabled.

# 0.4.0 - 2020/03/23
* Added an option to use `toString` method instead of returning JSON object for `toJSON`.
* Added `valueOf`, `toStringWithDecimalPlaces`, `toExponential`, `toFixed`, and `toPrecision`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omega_num.js",
"version": "0.4.0",
"version": "0.4.1",
"description": "A JavaScript library that handles arithmetic for numbers as large as 10{1000}9e15.",
"main": "OmegaNum.js",
"scripts": {
Expand Down

0 comments on commit d44022c

Please sign in to comment.