java.lang.Double.longBitsToDouble()


java.lang.Double.longBitsToDouble()

package com.codingdict;



import java.lang.*;



public class DoubleDemo {



   public static void main(String[] args) {



      Double d = new Double("15.30");



      /* returns the double value corresponding to a given bit representation */

      System.out.println(d.longBitsToDouble(6757689));

      System.out.println(d.longBitsToDouble(0x7ff0000000000000L));  

      System.out.println(d.longBitsToDouble(0xfff0000000000000L));  

   }

}