Can any help me in conv开发者_Python百科erting a hex value to IEE 754 32 bit value?
Go for longBitsToDouble
public static double longBitsToDouble(long bits)
Returns the double value corresponding to a given bit representation. The argument is considered to be a representation of a floating-point value according to the IEEE 754 floating-point "double format" bit layout.
Parameters: bits - any long integer.
Returns: the double floating-point value with the same bit pattern.
There are several methods available in the JDK 6 Double
class. Consider a look at the Javadoc of the Double class.
精彩评论