I want to know how to get the hexadecimal representation of a float number. I tried the following code
System.out.println(Float.toHexString(56));
Got o / p
0x1.cp5
I really do not understand. If I use Integer method, then o / p will be 38, which I can understand ... but how does o / p come about 0x1.cp5. Can someone tell me or point to a good tutorial.
source
share