The first version I gave you can hit the "integer trap" ... which means that it will attempt to convert to an integer data type and, if the HEX number is too large (i.e. > 32767), the conversion will error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.