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()
精彩评论