java.lang.Float.intBitsToFloat()


java.lang.Float.intBitsToFloat()

package com.codingdict;



import java.lang.*;



public class FloatDemo {



   public static void main(String[] args) {



      Float f = new Float("2.50f");



      /* returns the floating-point value with the same bit pattern */

      System.out.println(f.intBitsToFloat(123));

      System.out.println(f.intBitsToFloat(0x7f800000));  

      System.out.println(f.intBitsToFloat(0xff800000));  

   }

}