Skip to content

Commit

Permalink
Clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
kry008 committed Apr 4, 2023
1 parent 31613c5 commit 910a11c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 9 deletions.
3 changes: 1 addition & 2 deletions class/basicMath.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class BasicMath
}
if(b < 0)
{
// Example: 5^3 = 1 ÷ 5 ÷ 5 ÷ 5 = 0,008
let sum = 1;
for (var i = 0; i < b; i++)
{
Expand Down Expand Up @@ -273,7 +272,7 @@ class BasicMath
a = a / Math.pow(10, precision);
return {a: a, precision: precision, result: a};
}

}

}
Expand Down
4 changes: 2 additions & 2 deletions class/functionsMath.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class functionsMath
class FunctionsMath
{

}

module.exports = functionsMath;
module.exports = FunctionsMath;
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
let BasicMath = require('./class/basicMath.js');
let functionsMath = require('./class/functionsMath.js');
let FunctionsMath = require('./class/functionsMath.js');
class AllMath {
constructor() {
this.basicMath = new basicMath();
this.functionsMath = new functionsMath();
this.BasicMath = new basicMath();
this.FunctionsMath = new functionsMath();
this.FunctionsDate = new FunctionsDate();
}

}

module.exports = {
BasicMath: BasicMath,
functionsMath: functionsMath,
FunctionsMath: FunctionsMath,
AllMath: AllMath
}
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let math_c = require('./index.js');
let math_basicMath = new math_c.basicMath();
let math_basicMath = new math_c.BasicMath();
let math_functionsMath = new math_c.FunctionsMath();

console.log(math_basicMath.addition(1, 2));
console.log(math_basicMath.addition(1, 2).result);
Expand Down

0 comments on commit 910a11c

Please sign in to comment.