We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b2a5a5 commit 2404033Copy full SHA for 2404033
README.md
@@ -4,6 +4,23 @@ A library for calculations with arbitrary length integers.
4
This is a simple wrapper around [BigInteger.js](https://github.com/peterolson/BigInteger.js)
5
by [Peter Olson](https://github.com/peterolson).
6
7
+## Example
8
+
9
+```purescript
10
+x = fromInt 42
11
+y = (fromJust <<< fromBase 16) "fe45aab12"
12
+mersenne10 = (fromInt 2) `pow` (fromInt 89) - one
13
14
+> x `pow` x
15
+fromString "150130937545296572356771972164254457814047970568738777235893533016064"
16
17
+> toNumber (y * mersenne10)
18
+4.2248205181941055e+37
19
20
+> prime mersenne10
21
+true
22
+```
23
24
## Module documentation
25
26
- [Data.BigInt](docs/Data/BigInt.md)
0 commit comments