Here you can find the source of toFloat(ByteBuffer bytes)
public static float toFloat(ByteBuffer bytes)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static float toFloat(ByteBuffer bytes) { return bytes.getFloat(bytes.position()); }// www . j a v a2 s. c o m }