You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rob Tompkins (JIRA)" <ji...@apache.org> on 2016/09/11 20:47:21 UTC
[jira] [Commented] (LANG-1060) NumberUtils.isNumber assumes number
starting with Zero is octal
[ https://issues.apache.org/jira/browse/LANG-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15482381#comment-15482381 ]
Rob Tompkins commented on LANG-1060:
------------------------------------
Currently
{code}
NumberUtils.isCreatable("002.345");
{code}
Returns {{false}}. I'm not entirely certain how we want to fix this. I've been working in this area, so I'll bring it up on the dev mailing list to see what people think.
> NumberUtils.isNumber assumes number starting with Zero is octal
> ---------------------------------------------------------------
>
> Key: LANG-1060
> URL: https://issues.apache.org/jira/browse/LANG-1060
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.math.*
> Affects Versions: 3.3.2
> Reporter: James Haugen
> Assignee: Rob Tompkins
> Fix For: 3.x
>
>
> The isNumber method assumes, that if the String being passed in doesn't have an 'X' at the second char it is an octal number.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)