commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renat Zhilkibaev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1087) NumberUtils#createNumber() returns positive BigDecimal when negative Float is expected
Date Sat, 28 Feb 2015 19:53:04 GMT
Renat Zhilkibaev created LANG-1087:
--------------------------------------

             Summary: NumberUtils#createNumber() returns positive BigDecimal when negative
Float is expected
                 Key: LANG-1087
                 URL: https://issues.apache.org/jira/browse/LANG-1087
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.math.*
    Affects Versions: 3.x
            Reporter: Renat Zhilkibaev


NumberUtils.createNumber("-0.0") returns BigDecimal with 0 signum.
Caused by the implementation not checking for sign when extracting mantissa from the input
string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message