From a1dce82d89edadbb39cf39de09bb97d031aedcad Mon Sep 17 00:00:00 2001 From: linzhijun Date: Sat, 18 Mar 2023 16:23:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E6=95=88=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolgood/algorithm/internals/MathVisitor.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/java/toolgood.algorithm/src/main/java/toolgood/algorithm/internals/MathVisitor.java b/java/toolgood.algorithm/src/main/java/toolgood/algorithm/internals/MathVisitor.java index 3073d010..aa068df7 100644 --- a/java/toolgood.algorithm/src/main/java/toolgood/algorithm/internals/MathVisitor.java +++ b/java/toolgood.algorithm/src/main/java/toolgood/algorithm/internals/MathVisitor.java @@ -365,17 +365,6 @@ public Operand visitJudge_fun(final Judge_funContext context) { return Operand.Create(r != 0); } - private int Compare(final double t1, final double t2) { - - final double b = round(t1 - t2, 12); - if (b == 0) { - return 0; - } else if (b > 0) { - return 1; - } - return -1; - } - public Operand visitAndOr_fun(final AndOr_funContext context) { // 程序 && and || or 与 excel的 AND(x,y) OR(x,y) 有区别 // 在excel内 AND(x,y) OR(x,y) 先报错,