Hi Jim,
Thank you so much for your help ....
Yes I used zero as an argument to bbuf.getLong() but it wasn't giving me the required result so I tried 37.22 to see what does it do ....
I have tried the piece of code you have posted (with an argument as 37.22) and it is giving me the following answer :
0x7.3873686078661125E137
But I am looking for something like this ....
By using
Long.toHexString(Double.doubleToLongBits(37.22))
I get the result as:
(40429C28F5C28F5C)
which is in Big Endian and I want to convert it into Little Endian so that I can use this value.
1.)What I need is if I enter (40429C28F5C28F5C) as an argument to the function, it should convert it to little endian (5C8FC2F5289C4240) ....
I have found the following example (but for 4-bytes):
http://www.rgagnon.com/javadetails/java-0007.html I am looking for something like that for 8-bytes(64 bits)?
Thank you.