Skip to content

Commit dca644b

Browse files
Update Calculator.java
1 parent 5d5fb6d commit dca644b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simplejavacalculator/Calculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public Double calculateMono(MonoOperatorModes newMode, Double num) {
103103
if (num == 0 || num % 180 == 0) {
104104
return 0.0;
105105
}
106-
if (num % 90 == 0 && num % 180 != 0)
106+
if (num % 90 == 0 && num % 180 != 0) {
107107
return NaN;
108108
}
109109

0 commit comments

Comments
 (0)