开发者

Double.doubleToLongBits equivalent in C#?

开发者 https://www.devze.com 2023-03-22 22:11 出处:网络
there\'s a Java method Double.doubleToLongBits that basic开发者_如何学Cally gets a double and return a long with the same bits.

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

精彩评论

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

关注公众号