Here you can find the source of toFloat(final byte[] b)
Parameter | Description |
---|---|
b | byte[] <p> |
public static float toFloat(final byte[] b)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; public class Main { /**//from ww w . j av a2s . c o m * toFloat. * <p> * @param b byte[] * <p> * @return float */ public static float toFloat(final byte[] b) { return ByteBuffer.wrap(b).getFloat(); } }