Hello everyone,
I need some assistance in converting a hexadecimal with the format of 0xABCD to a decimal value (particularly a Double). The reason why a double is because some hexadecimal representations can be very large and will not fit inside of an Integer. This can cause a bad number Format Exception. I am already aware of the methods:
String hexValue = "0xFFFFFFFFFFFFFFFF";
Integer.decode(hexValue)
and
Integer.parseInt(hexValue, 16)
However, I can't seem to find one for Double. I would like to encompass the value of for instance 0xFFFFFFFFFFFFFFFF into a double variable. Doing Integer.decode("0xFFFFFFFFFFFFFFFF") causes an exception because the integer is not large enough. Please let me know any suggestions or advice.
Thanks in advance!
Brian