Here you can find the source of bits2float(int i)
static float bits2float(int i)
//package com.java2s; //License from project: LGPL public class Main { static float bits2float(int i) { //System.out.println(i); float res = Float.intBitsToFloat(i); //System.out.println("f: "+res); return res; }/*from w w w .j a va2s .c o m*/ static float bits2float(long i) { //System.out.println(i); float res = Float.intBitsToFloat((int) i); //float res = (float)Double.longBitsToDouble(i & 0xffffffffl); //System.out.println("f: "+res); return res; } }