Sign In

fraction-math-js

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fraction-math-js - npm Package Compare versions

Comparing version
0.1.7
to
0.1.8
+16
-8
index.js

@@ -104,4 +104,12 @@ "use strict"

}
this.getn=()=>value[0];
this.getd=()=>value[1];
this.n=value[0];//numerator
this.d=value[1];//denominator
Object.defineProperties(this,{
"n":{
"writable":false
},
"d":{
"writable":false
}
});
//define closure function for read the value;

@@ -114,2 +122,8 @@ }

}
toJSON(){
return this.toString();
}
toBigNumber(){
return this.n.dividedBy(this.d);
}
plus(y){

@@ -152,8 +166,2 @@ let x=this;

}
get n(){//numerator
return this.getn();
}
get d(){//denominator
return this.getd();
}
get value(){

@@ -160,0 +168,0 @@ return [this.n,this.d];//get value

{
"name": "fraction-math-js",
"version": "0.1.7",
"version": "0.1.8",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",