开发者

How do I convert the bits in a ulong into a double?

I'm looking for a C# equivalent to Java's Double.longBitsToDouble method. I have a double value stored in a ulong and I want those bits to be converted 开发者_开发知识库to represent a double. Is there an easy way to do this in C#?


Here you go: http://msdn.microsoft.com/en-us/library/system.bitconverter.aspx


you may want to look it

  BitConverter.ToDouble()
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜