The list of methods to do ByteBuffer to Float are organized into topic(s).
float
toFloat(ByteBuffer value) to Float
float result = 0f;
try {
if (value != null) {
int originPos = value.position();
result = value.getFloat();
value.position(originPos);
} catch (Exception ex) {
...
int
toFloat24BE(ByteBuffer buf, float[] out) to Float BE
int samples = 0;
while (buf.remaining() >= 3 && samples < out.length) {
out[samples++] = r24
* ((((buf.get() & 0xff) << 24) | ((buf.get() & 0xff) << 16) | ((buf.get() & 0xff) << 8)) >> 8);
return samples;