Java Convert via ByteBuffer toFloat(final byte[] b)

Here you can find the source of toFloat(final byte[] b)

Description

toFloat.

License

Open Source License

Parameter

Parameter Description
b byte[] <p>

Return

float

Declaration

public static float toFloat(final byte[] b) 

Method Source Code

//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();
    }
}

Related

  1. toDoubleArray(byte[] data)
  2. toFile(URL url)
  3. toFile(URL url)
  4. toFiles(URL[] urls)
  5. toFloat(byte[] bytes)
  6. toFloatArray(int[] intArray)
  7. toFloatBytes(List datas)
  8. toGuidBytes(UUID theUuid)
  9. toGuidString(UUID uuid)