From 46968dacc82d459a12d4568f4de362090cae43e0 Mon Sep 17 00:00:00 2001 From: youseries Date: Thu, 27 Sep 2018 14:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DFloor=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bstek/ureport/expression/function/math/FloorFunction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ureport2-core/src/main/java/com/bstek/ureport/expression/function/math/FloorFunction.java b/ureport2-core/src/main/java/com/bstek/ureport/expression/function/math/FloorFunction.java index 1ff6375..03b07ed 100644 --- a/ureport2-core/src/main/java/com/bstek/ureport/expression/function/math/FloorFunction.java +++ b/ureport2-core/src/main/java/com/bstek/ureport/expression/function/math/FloorFunction.java @@ -47,7 +47,7 @@ public class FloorFunction extends MathFunction { } } data.setScale(pos, BigDecimal.ROUND_FLOOR); - return Math.ceil(data.doubleValue()); + return Math.floor(data.doubleValue()); } @Override