Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Big Sum License NPM version Dependency Status Build Status

Sum array representation of big numbers.

Install

npm i big-sum --save

How to use?

const bigSum = require('big-sum');

bigSum([1, 9], [2, 9])
// 48

const {rawSum} = require('big-sum');
const bigWrap = require('big-wrap');

rawSum([1, 9], [2, 9]);
// [3, 18]

bigWrap([3, 18])
// 48

Environments

In old node.js environments that not fully supports es2015, big-sum could be used with:

var bigSum = require('big-sum/legacy');

Related

  • big-wrap - wrap array representation of big numbers
  • big-mul - multiply array representation of big numbers

License

MIT