项目作者: code08-ind

项目描述 :
It Is A Package Which Have Various Functions In It Which Include Various Functions Which Apply On Rational Numbers. It Is Non-Dependent Package.
高级语言: JavaScript
项目地址: git://github.com/code08-ind/rationalnumbers.git
创建时间: 2021-06-12T19:12:18Z
项目社区:https://github.com/code08-ind/rationalnumbers

开源协议:

下载


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:


  1. npm i rationalnumbers


To Use This Package, Below Are Given Some Example:


  1. let values = require('rationalnumbers');
  2. console.log(values.add(1.456,2.421));
  3. // 3.877
  4. // 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.


  1. let values = require('rationalnumbers');
  2. console.log(values.divideValueUptoDecimal(1.456,2.421,3));
  3. // 0.601
  4. // 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:


  1. values.subtract(a,b);
  2. // 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.


  1. values.multiply(a,b);
  2. // 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.


  1. values.divideValue(a,b);
  2. // 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.


  1. values.divideValueInt(a,b);
  2. // 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.


  1. values.absNumber(a);
  2. // 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