https://bz.apache.org/bugzilla/show_bug.cgi?id=65792

--- Comment #17 from caoxj <[email protected]> ---
Thank you very much.
Since the impact is small in a hurry, only INT is supported.

NumericFunction.java

        public static final Function INT = new OneArg() {
                protected double evaluate(double d) {
-                       return Math.round(d-0.5);

+                       if(d > 0){
+                               return MathX.roundDown(d, 0);
+                       }else{
+                               return MathX.roundUp(d, 0);
+                       }
                }
        };

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to