how can we convert hexadecimal number string to double-precision number in java ?
in matlab it’s simple :
>> hex2num('c0399999a0000000')
ans =
-25.6000
but could I do the same things in java also ?
I tried parseInt() but this number is not integer.
I think you want
Double.longBitsToDouble, like this:(The fact that
longis signed in Java makes this more awkward than you’d really want, but hey…)