infinityplus 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -7,6 +7,11 @@ You can access the github respository of InfinityPlus [here](https://github.com/
7
7
  3. Scientific Notation
8
8
  4. Browser Safe operations (async)
9
9
  5. Simple and readable
10
+ 6. Extends number limit from 1.79e308 -> 1e1e308
11
+ ## Downsides
12
+ 1. Slow(still fast enough to be used but slower than other Big number libraries)
13
+ 2. Async/await everywhere(without this, performance can slow down and you can get inconsistent results)
14
+ 3. Only 2 decimal places of precision
10
15
  ## Documentation
11
16
  I shall teach you how to use InfinityPlus, but first:
12
17
  ## How to install
@@ -215,5 +220,8 @@ console.log(number) // 3e+90
215
220
  - You can't chain operations because of returning a result or an array
216
221
  - Don't forget to use await for all async operations for consistency
217
222
  - All methods except .log10(), .ln(), .log2(), .lessThan(), .greaterThan(), .equalTo(), .toNumber() and .seeNumber() automatically use .fix() and .rfix() so there is so need to use .fix() and .rfix() again
223
+ - This is a slow but browser safe library because of async
224
+ - if you create a function that contains any infinityplus async method, the function must be async and be called with await
225
+ - **if you want speed, go to [Break Infinity.js](https://www.npmjs.com/package/break_infinity.js), for precision, go to [Decimal.js](https://www.npmjs.com/package/decimal.js) and for browser safe async operations, try out this library(infinityplus)**
218
226
  ## License
219
227
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinityplus",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A simple big number library that shouldnt be hard to understand",
5
5
  "main": "InfinityPlus.mjs",
6
6
  "scripts": {
@@ -20,6 +20,6 @@
20
20
  "license": "MIT",
21
21
  "type": "module",
22
22
  "dependencies": {
23
- "infinityplus": "^1.0.0"
23
+ "infinityplus": "^1.0.1"
24
24
  }
25
25
  }