Whitney Martinez 6 年之前
父節點
當前提交
0c5dcce2e6
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5
    3
      src/main/java/rocks/zipcode/calcskin/CalcEngine.java

+ 5
- 3
src/main/java/rocks/zipcode/calcskin/CalcEngine.java 查看文件

@@ -11,16 +11,18 @@ public class CalcEngine {
11 11
     }
12 12
 
13 13
     public double subtract(double v, double v1) {
14
-        return Double.NaN;
14
+        return v - v1;
15 15
     }
16 16
 
17 17
     public double multiply(double v, double v1)
18 18
     {
19
-        return Double.NaN;
19
+        return v * v1;
20 20
     }
21 21
 
22 22
     public double divide(double v, double v1) {
23 23
 
24
-        return Double.NaN;
24
+        return v / v1;
25
+
26
+
25 27
     }
26 28
 }