big-sum

1.1.0 • Public • Published

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

/big-sum/

    Package Sidebar

    Install

    npm i big-sum

    Weekly Downloads

    3

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    5.42 kB

    Total Files

    6

    Last publish

    Collaborators

    • coderaiser