Skip to content

truekubas/bigintegerjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BigIntegerJs

Safe manipulating with large integers (rather than 32bits)

npm version

Made with ES6 and love <3

Usage

All input values must be strings!

Install

npm install bigintegerjs

or

yarn add bigintegerjs

Init

var BigInteger = require("bigintegerjs");
var newInt  = new BigInteger('1234567890123456789012345678');
var newHex2Int  = new BigInteger('0x1a2b3c'); -> '1715004'

Sum

newInt.sum('1'); -> "1234567890123456789012345679"

Multiply

newInt.multiply(2); -> "2469135780246913578024691356" // input can be Number or String 

Testing

npm run test

Support on Beerpay

Hey dude! Help me out for a couple of 🍻!

Beerpay Beerpay

About

Safe manipulating with large integers (i.e rather than 32bits)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors