I have the following string "0x4B196DAF". I want to get output like "10055087.000000".
My piece of code is showing a strange output like "1.0055087E7"
long l = Long.parseLong(hexval, 16);
return Float.intBitsToFloat(l.intValue());
I have also tried with
long l = Long.parseLong(hexval, 16);
return Double.longBitsToDouble(l.longValue());
But nothing helpful. I have check few website which showing the correct output. I can't find out the problem exactly.