rationalnumbers
v1.0.0
Published
It Is A Package Which Have Various Functions In It Which Include Various Functions Which Apply On Rational Numbers. It Is Non-Dependent Package.
Downloads
1
Maintainers
Readme
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.