Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

numberz

sopan435ISC2.0.0

Numberz

readme

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