Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B86F010B18 for ; Sat, 28 Feb 2015 19:54:04 +0000 (UTC) Received: (qmail 9051 invoked by uid 500); 28 Feb 2015 19:54:04 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 8963 invoked by uid 500); 28 Feb 2015 19:54:04 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 8952 invoked by uid 99); 28 Feb 2015 19:54:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Feb 2015 19:54:04 +0000 Date: Sat, 28 Feb 2015 19:54:04 +0000 (UTC) From: "Renat Zhilkibaev (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LANG-1087) NumberUtils#createNumber() returns positive BigDecimal when negative Float is expected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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. > 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. > Expected is that negative Float is returned. -- This message was sent by Atlassian JIRA (v6.3.4#6332)