Browse Source

small fix printing inverse trig results

Allison Ziegler 6 years ago
parent
commit
9c0206e7db
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      Console.java

+ 6
- 1
Console.java View File

@@ -257,7 +257,12 @@ public class Console {
257 257
     }
258 258
     
259 259
     public void printTrigResult() {
260
-        println("= %s", parse.getFormattedAngle(calc.getDisplayValue()));
260
+        if (!errCheck()) {
261
+            println("= %s", parse.getFormattedAngle(calc.getDisplayValue()));
262
+        }
263
+        else {
264
+            errMessage();
265
+        }
261 266
     }
262 267
     
263 268
     public void printMemory() {