biginteger_easy
An arbitrarily-sized-integer library for JavaScript.
Installation
$ npm install biginteger_easy
###Summary ####Support operation
- "+"
- "-"
- "*"
- "/"
- "%"
- "|"
- "&"
- "<<"
- ">>"
API
- biginteger_easy.add()
- biginteger_easy.minus()
- biginteger_easy.multiplication()
- biginteger_easy.calcRemainder()
- biginteger_easy.calcDivide()
- biginteger_easy.toBinary()
- biginteger_easy.toDec()
- biginteger_easy.calcOr()
- biginteger_easy.calcAnd()
- biginteger_easy.calcLeft()
- biginteger_easy.calcRight()
Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by
$ npm install
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
ISC license
Copyright (c) 2017
Example
var BigInteger = require('biginteger_easy');
console.log(BigInteger.add('123', '123'));
console.log(BigInteger.minus('123', '123'));
console.log(BigInteger.multiplication('123', '123'));
console.log(BigInteger.calcDivide('123', '123'));
console.log(BigInteger.calcAnd('4656445', '344514546'));
console.log(BigInteger.calcOr('46785565', '344541546'));
console.log(BigInteger.calcLeft('1267650600228229401496703205376', '1'));
console.log(BigInteger.calcRight('45459999999999999999999999999999999999999994125', '6'));