2.0.0 • Published 5 years ago

numberz v2.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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

2.0.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago