infinityplus 1.0.0 → 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.
- package/README.md +9 -0
- package/package.json +15 -3
package/README.md
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
# InfinityPlus
|
|
2
2
|
A simple big number library that shouldnt be hard to understand.
|
|
3
|
+
You can access the github respository of InfinityPlus [here](https://github.com/unmRainbow7/InfinityPlus?tab=readme-ov-file)
|
|
3
4
|
## Features
|
|
4
5
|
1. Number storage beyond 1.79e308
|
|
5
6
|
2. Big number calculations
|
|
6
7
|
3. Scientific Notation
|
|
7
8
|
4. Browser Safe operations (async)
|
|
8
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
|
|
9
15
|
## Documentation
|
|
10
16
|
I shall teach you how to use InfinityPlus, but first:
|
|
11
17
|
## How to install
|
|
@@ -214,5 +220,8 @@ console.log(number) // 3e+90
|
|
|
214
220
|
- You can't chain operations because of returning a result or an array
|
|
215
221
|
- Don't forget to use await for all async operations for consistency
|
|
216
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)**
|
|
217
226
|
## License
|
|
218
227
|
MIT
|
package/package.json
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infinityplus",
|
|
3
|
-
"version": "1.0.
|
|
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": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
|
-
"keywords": [
|
|
9
|
+
"keywords": [
|
|
10
|
+
"big-number",
|
|
11
|
+
"scientific-notation",
|
|
12
|
+
"library",
|
|
13
|
+
"math",
|
|
14
|
+
"beyond-infinity",
|
|
15
|
+
"simple",
|
|
16
|
+
"exponent",
|
|
17
|
+
"mantissa"
|
|
18
|
+
],
|
|
10
19
|
"author": "unmraindow",
|
|
11
20
|
"license": "MIT",
|
|
12
|
-
"type": "module"
|
|
21
|
+
"type": "module",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"infinityplus": "^1.0.1"
|
|
24
|
+
}
|
|
13
25
|
}
|