开发者

Double.doubleToLongBits equivalent in C#?

there's a Java method Double.doubleToLongBits that basic开发者_如何学Cally 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


You'll want BitConverter.DoubleToInt64Bits

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜