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
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- Sorting 3 numbers without branching [closed]
- How to maintain order of key-value in DataFrame sa
- Graphics.DrawImage() - Throws out of memory except
BitConverter.DoubleToInt64Bits
would be a good alternative.http://msdn.microsoft.com/en-us/library/system.bitconverter.doubletoint64bits.aspx
You'll want BitConverter.DoubleToInt64Bits