numberz

2.0.0 • Public • Published

Numberz

=========

Module to node.js perform mathematical operations at easy.

Using the bn.js module it can return numbers of any size without being limited by the hardcoded javascript Number.MAX_LIMIT.

Usage

Factorial

Find factorial of a number:

WARNING: Input should be a Positive Number

const numberz = require ('numberz');
const factorial = numberz.factorialOf(50);
console.log (factorial);

Result:

{ answer: '30414093201713378043612608166064768844377641568960512000000000000' }

Error:

const numberz = require ('numberz');
const factorial = numberz.factorialOf('wertyuiuy');
console.log (factorial);

Error Result:

{ error: 'Input Should be a Positive Number' }

Author

Sopan Mittal

Readme

Keywords

none

Package Sidebar

Install

npm i numberz

Weekly Downloads

2

Version

2.0.0

License

ISC

Unpacked Size

2.23 kB

Total Files

4

Last publish

Collaborators

  • sopan