slamdata/purescript-bigints

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

Homepage:

Size: 12

Language: PureScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

purescript-bigints

Latest release Build Status

A library for calculations with arbitrary length integers. This is a simple wrapper around BigInteger.js by Peter Olson.

Module documentation
Example
fromInt 42
(fromJust <<< fromBase 16) "fe45aab12"
enne10 = (fromInt 2) `pow` (fromInt 89) - one

`pow` x
String "150130937545296572356771972164254457814047970568738777235893533016064"

Number (y * mersenne10)
48205181941055e+37

ime mersenne10

Installation and usage

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.

Development
r install
install

Then, use pulp to build, run tests and generate the documentation.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.