Online Java Compiler By
JavaTpoint.com
public class Double_doubleToRawLongBitsMethod_Example2 { public static void main(String[] args) { double d1=65876856.6756756; //Creating class object Double_doubleToRawLongBitsMethod_Example2 obj = new Double_doubleToRawLongBitsMethod_Example2(); //Converting double to long Bits long d2= obj.doubleToRawLongBits(d1); System.out.println(d1+" value in long bits = "+d2); } }
Output