commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Created: (MATH-482) FastMath.max(50.0f, -50.0f) => -50.0f; should be +50.0f
Date Mon, 17 Jan 2011 19:53:43 GMT
FastMath.max(50.0f, -50.0f) => -50.0f; should be +50.0f
-------------------------------------------------------

                 Key: MATH-482
                 URL: https://issues.apache.org/jira/browse/MATH-482
             Project: Commons Math
          Issue Type: Bug
            Reporter: Sebb
            Assignee: Sebb


FastMath.max(50.0f, -50.0f) => -50.0f; should be +50.0f.

This is because the wrong variable is returned.

The bug was not detected by the test case "testMinMaxFloat()" because that has a bug too -
it tests doubles, not floats.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message