[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: [jira] [Updated] (LANG-1087) NumberUtils#createNumber() returns positive BigDecimal when negative Fl
From: "Renat Zhilkibaev (JIRA)" <jira () apache ! org>
Date: 2015-02-28 20:03:04
Message-ID: JIRA.12778509.1425153132000.43215.1425153784444 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/LANG-1087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Renat Zhilkibaev updated LANG-1087:
-----------------------------------
Description:
{{NumberUtils.createNumber("-0.0")}} returns {{BigDecimal}} with 0 signum.
Caused by the implementation not checking for sign when extracting mantissa from the \
input string.
Expected is that negative {{Float}} is returned.
was:
NumberUtils.createNumber("-0.0") returns BigDecimal with 0 signum.
Caused by the implementation not checking for sign when extracting mantissa from the \
input string.
Expected is that negative Float is returned.
> 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
> Attachments: lang-1087-patch1.diff
>
>
> {{NumberUtils.createNumber("-0.0")}} returns {{BigDecimal}} with 0 signum.
> Caused by the implementation not checking for sign when extracting mantissa from \
> the input string. Expected is that negative {{Float}} is returned.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic