G Guest Jan 2, 2006 #1 How to get the hex string of a double floating point number (internal 8 bytes)?
M Mattias Sjögren Jan 2, 2006 #2 How to get the hex string of a double floating point number (internal 8 bytes)? Click to expand... Something like BitConverter.DoubleToInt64Bits(yourDoubleValue).ToString("X") Mattias
How to get the hex string of a double floating point number (internal 8 bytes)? Click to expand... Something like BitConverter.DoubleToInt64Bits(yourDoubleValue).ToString("X") Mattias
J Jon Skeet [C# MVP] Jan 2, 2006 #3 nick said: How to get the hex string of a double floating point number (internal 8 bytes)? Click to expand... Use BitConverter.DoubleToInt64Bits to represent the double as a long, and then format the long as a hex string using the 'X' format specifier.
nick said: How to get the hex string of a double floating point number (internal 8 bytes)? Click to expand... Use BitConverter.DoubleToInt64Bits to represent the double as a long, and then format the long as a hex string using the 'X' format specifier.