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
BitConverter.DoubleToInt64Bits
would be a good alternative.
http://msdn.microsoft.com/en-us/library/system.bitconverter.doubletoint64bits.aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.