Here you can find the source of writeFFloat(ByteBuffer buffer, float value)
public static void writeFFloat(ByteBuffer buffer, float value) throws IOException
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.nio.ByteBuffer; public class Main { /** Writes a 4 byte float. */ public static void writeFFloat(ByteBuffer buffer, float value) throws IOException { buffer.putInt(Float.floatToIntBits(value)); }/*from www. j a v a 2 s . co m*/ }