Sum array representation of big numbers.
npm i big-sum --save
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
In old node.js
environments that not fully supports es2015
, big-sum
could be used with:
var bigSum = require('big-sum/legacy');
- big-wrap - wrap array representation of big numbers
- big-mul - multiply array representation of big numbers
MIT