Bit oriented calculation for double type

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
Home 
  Java Book 
    Essential Classes  

Double:
  1. Double class
  2. Constants in Double class
  3. Double class Constructor
  4. Return double value as byte, double, float, int, long, short
  5. Compare two double values
  6. Is a double value an infinite large value, or it is not a number.
  7. Convert string value to double
  8. Convert double value from string
  9. Get the hexadecimal string representation
  10. Bit oriented calculation for double type