Double to long without conversion in Java

I need to turn double into a long preservation of its binary structure, and not a numeric value. Just change the type, but leave the binary value as it is. Is there any own way to do this?

+6
source share
1 answer

There is a Double using doubleToLongBits and doubleToLongRawBits. Javadok is your friend.

+11
source

All Articles