Skip to content
A JavaScript implementation of node-bignum forked from the wonderful work done by MikeMcl as bignumber.js
JavaScript
Branch: master
Clone or download
Pull request Compare This branch is 24 commits ahead, 175 commits behind MikeMcl:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.npmignore
LICENCE
README.md
bignumber.js
package.json

README.md

browserify-bignum

A JavaScript implementation of node-bignum forked from the wonderful work done by MikeMcl as bignumber.js

Usage

API functionality should be identical to that of node-bignum. However, a few methods are missing:

  • BigNumber.prime(bits, safe=true)
  • .and(n)
  • .or(n)
  • .xor(n)
  • .invertm(n)
  • .rand()
  • .probPrime()
  • .root(n)
  • .shiftLeft(n)
  • .shiftRight(n)
  • .gcd(n)
  • .jacobi(n)

I have no intention of implementing them if you would like to do so and submit a pull request I would happily accept it. I wrote this library so I could browserify node-srp which does not require any of the above mentioned methods.

You can’t perform that action at this time.