Skip to content

coderaiser/big-sum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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