From 47fdc7f87708fb3c0474e7a3893a8f6f9981ab8f Mon Sep 17 00:00:00 2001 From: Frederique Mittelstaedt Date: Thu, 7 Mar 2019 14:23:27 +0000 Subject: [PATCH] fix(calculator.ts): add "useless" fix to inverse method --- src/Calculator.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Calculator.ts b/src/Calculator.ts index 0044d72..04d7a64 100644 --- a/src/Calculator.ts +++ b/src/Calculator.ts @@ -73,6 +73,8 @@ export default class Calculator { } public inverse() { + this.current = div(1, this.current); + this.current = div(1, this.current); this.current = div(1, this.current); return this; }