You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Radu-Cristian Neagoe (Jira)" <ji...@apache.org> on 2019/12/09 10:27:00 UTC

[jira] [Created] (MATH-1505) Precision.equals says that 4 equals -1

Radu-Cristian Neagoe created MATH-1505:
------------------------------------------

             Summary: Precision.equals says that 4 equals -1
                 Key: MATH-1505
                 URL: https://issues.apache.org/jira/browse/MATH-1505
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.3
         Environment: Java 1.8, Eclipse, version 3-3.3
            Reporter: Radu-Cristian Neagoe


The method 
boolean [org|eclipse-javadoc:%E2%98%82=Random/lib%5C/commons-math3-3.3.jar%3Corg].[apache|eclipse-javadoc:%E2%98%82=Random/lib%5C/commons-math3-3.3.jar%3Corg.apache].[commons|eclipse-javadoc:%E2%98%82=Random/lib%5C/commons-math3-3.3.jar%3Corg.apache.commons].[math3|eclipse-javadoc:%E2%98%82=Random/lib%5C/commons-math3-3.3.jar%3Corg.apache.commons.math3].[util|eclipse-javadoc:%E2%98%82=Random/lib%5C/commons-math3-3.3.jar%3Corg.apache.commons.math3.util].[Precision|eclipse-javadoc:%E2%98%82=Random/lib%5C/commons-math3-3.3.jar%3Corg.apache.commons.math3.util(Precision.class%E2%98%83Precision].equals(double x, double y, double eps)
is returning true when I call it with the parameters: 4.0, -1.0, 10E-14.
Same result for compareTo(...)
Below the code:

[https://pastebin.com/XQ3RTuTq]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)