commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-854) NumberUtils#createNumber - does not allow for hex numbers to be larger than Long
Date Mon, 12 Nov 2012 17:39:12 GMT

    [ https://issues.apache.org/jira/browse/LANG-854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495440#comment-13495440
] 

Gary Gregory commented on LANG-854:
-----------------------------------

Sounds good. What about binary numbers?
                
> NumberUtils#createNumber - does not allow for hex numbers to be larger than Long
> --------------------------------------------------------------------------------
>
>                 Key: LANG-854
>                 URL: https://issues.apache.org/jira/browse/LANG-854
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Sebb
>
> NumberUtils#createNumber allows non-hex integers to be Integer, Long or BigInteger, however
hex integers are only allowed to be Integer or Long; anything longer than 16 hex digits currently
causes a NumberFormatException.
> It might be useful to allow longer hex numbers and convert them to BigInteger.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message