Skip to content

Commit 47fdc7f

Browse files
committed
fix(calculator.ts): add "useless" fix to inverse method
1 parent 9c9a988 commit 47fdc7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Calculator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export default class Calculator {
7373
}
7474

7575
public inverse() {
76+
this.current = div(1, this.current);
77+
this.current = div(1, this.current);
7678
this.current = div(1, this.current);
7779
return this;
7880
}

0 commit comments

Comments
 (0)