I need to convert a double to an array of bytes in little endian, keeping the decimal places. To do this, I need to use bitwise operations on the double. However, I cannot do >> or & to a double. Since long is the only other type that can be used in bitwise operations and is 64bit, I need to convert a double to a long in such a way that:
011010101010.1001010010100101001010010100101001010010100101001010
becomes
011010101010 1001010010100101001010010100101001010010100101001010L
instead of
000000000000 0000000000000000000000000000000000000000011010101010L