there is the Java method Double.doubleToLongBits , which basically gets double and returns a long with the same bits.How can I do this in C #?Thanks you
Double.doubleToLongBits
double
long
BitConverter.DoubleToInt64Bits would be a good alternative.
BitConverter.DoubleToInt64Bits
http://msdn.microsoft.com/en-us/library/system.bitconverter.doubletoint64bits.aspx
You will need BitConverter.DoubleToInt64Bits