| Return | Method | Summary |
|---|---|---|
| static long | doubleToLongBits(double value) | Returns a IEEE 754 floating-point "double format" bit layout. |
| static long | doubleToRawLongBits(double value) | Returns a IEEE 754 floating-point "double format" bit layout, preserving Not-a-Number (NaN) values. |
| static double | longBitsToDouble(long bits) | Returns the double value corresponding to a given bit representation. |
public class Main {
public static void main(String[] args) {
System.out.println(Double.doubleToLongBits(1.2));
}
}
The output:
4608083138725491507| w__ww___._j_a___v___a_2___s._c___o___m__ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |