there’s a Java method Double.doubleToLongBits that basically gets a double and return a long with the same bits.
How can I do it in C#?
Thank you
there’s a Java method Double.doubleToLongBits that basically gets a double and return a long
Share
BitConverter.DoubleToInt64Bitswould be a good alternative.http://msdn.microsoft.com/en-us/library/system.bitconverter.doubletoint64bits.aspx