rationalnumbers

1.0.0 • Public • Published

rationalnumbers


It Is A Package Which Have Various Functions In It Which Include Various Functions Which Apply On Rational Numbers. It Is Non-Dependent Package.


To Install This Package, Write Below Given Command:


npm i rationalnumbers

To Use This Package, Below Are Given Some Example:


let values = require('rationalnumbers');

console.log(values.add(1.456,2.421));

// 3.877

// In This Package Function We Are Adding Two Values By Just Passing The Values In Which The First Argument Is First Value Through Which Second Argument Is To Added.

let values = require('rationalnumbers');

console.log(values.divideValueUptoDecimal(1.456,2.421,3));

// 0.601

// In This Package Function We Are Dividing Two Values By Just Passing The Values In Which The First Argument Is First Value Through Which Second Argument Is To Divided. The Third Argument Is Depicted as Of The Number Of Decimal Places Upto Which We Want Our Answer.

More Of The Functions Along With Their Uses Are Given Below:


values.subtract(a,b);

// In This Package Function We Are Subtracting Two Values By Just Passing The Values In Which The First Argument Is First Value Through Which Second Argument Is To Subtracted.

values.multiply(a,b);

// In This Package Function We Are Multiplying Two Values By Just Passing The Values In Which The First Argument Is First Value Through Which Second Argument Is To Multiplied.

values.divideValue(a,b);

// In This Package Function We Are Dividing Two Values By Just Passing The Values In Which The First Argument Is First Value Through Which Second Argument Is To Divided.

values.divideValueInt(a,b);

// In This Package Function We Are Dividing Two Values By Just Passing The Values In Which The First Argument Is First Value Through Which Second Argument Is To Divided And Returns The Value In Nearest Integer.

values.absNumber(a);

// In This Package Function We Are Dividing One Value And The Function All In Finds The Absolute Value Of The Value We Passed In The Function.

To Contact Me For Any Contribution Or Anything Else, You Can Contact Me At:


gargaryan82000@gmail.com

Package Sidebar

Install

npm i rationalnumbers

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.55 kB

Total Files

3

Last publish

Collaborators

  • aryangarg