Skip to content

coderaiser/big-mul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Big Mul License NPM version Dependency Status Build Status

Multiply array representation of big numbers using BigInt where possible or Fürer's algorithm.

Install

npm i big-mul --save

How to use?

const bigMul = require('big-mul');

bigMul([1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9])
// returns
[ 1, 5, 2, 4, 1, 5, 7, 8, 7, 5, 0, 1, 9, 0, 5, 2, 1 ]

Environments

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

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

Related

  • big-sum - sum array representation of big numbers
  • big-wrap - wrap array representation of big numbers

License

MIT