Name: purescript-bigints
Owner: SlamData, Inc.
Description: Arbitrary length integers for PureScript
Forked from: sharkdp/purescript-bigints
Created: 2016-03-04 16:26:03.0
Updated: 2016-03-04 16:26:03.0
Pushed: 2016-02-02 21:21:05.0
Size: 12
Language: PureScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A library for calculations with arbitrary length integers. This is a simple wrapper around BigInteger.js by Peter Olson.
fromInt 42
(fromJust <<< fromBase 16) "fe45aab12"
enne10 = (fromInt 2) `pow` (fromInt 89) - one
`pow` x
String "150130937545296572356771972164254457814047970568738777235893533016064"
Number (y * mersenne10)
48205181941055e+37
ime mersenne10
You can install this package via Bower. You will also need BigInteger.js, which can be installed via npm
:
r install purescript-bigints
install big-integer
For the browser, remember to bundle BigInteger.min.js
with your code.
r install
install
Then, use pulp
to build, run tests and generate the documentation.