开发者

Java conversion HEX to IEEE 754 32 bit value...?

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜