[ 
https://issues.apache.org/jira/browse/LANG-1644?focusedWorklogId=561107&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-561107
 ]

ASF GitHub Bot logged work on LANG-1644:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 04/Mar/21 20:20
            Start Date: 04/Mar/21 20:20
    Worklog Time Spent: 10m 
      Work Description: aherbert commented on pull request #727:
URL: https://github.com/apache/commons-lang/pull/727#issuecomment-790912955


   The value `5D0` may be valid hex digits but what are you going to do with 
that fact? If you want to create a number with it then nothing in NumberUtils 
or the Java language will make a number from that string value. They all 
require that the string is marked with a prefix to identify it should be parsed 
as hex.
   
   For example the following is valid hex `444` but if you parse it as `0x444` 
and `444` you get different numbers.
   
   So what is the use case for a method that identifies if a string has only 
valid hexidecimal digits and optionally a minus and a hex prefix?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 561107)
    Time Spent: 3h 40m  (was: 3.5h)

> Check if number is hexadecimal
> ------------------------------
>
>                 Key: LANG-1644
>                 URL: https://issues.apache.org/jira/browse/LANG-1644
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Arturo Bernal
>            Priority: Minor
>          Time Spent: 3h 40m
>  Remaining Estimate: 0h
>
> IMO would be fine have a method that given a String tell you if is a valid 
> hexadecimal number instead of try to create the number. should be valid:
>  
>  * 5D0
>  * 0x7FFFFFFFFFFFFFFF
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to