Java Utililty Methods Float Number Create

List of utility methods to do Float Number Create

Description

The list of methods to do Float Number Create are organized into topic(s).

Method

floattoFloat(byte[] arr)
to Float
return Float.intBitsToFloat(toInt(arr));
floattoFloat(byte[] b)
to Float
int l;
l = b[0];
l &= 0xff;
l |= ((long) b[1] << 8);
l &= 0xffff;
l |= ((long) b[2] << 16);
l &= 0xffffff;
l |= ((long) b[3] << 24);
...
floattoFloat(byte[] b)
to Float
return toFloat(b, 0);
floattoFloat(byte[] b, int off, boolean bigEndian)
to Float
return Float.intBitsToFloat(toInt(b, off, bigEndian));
floattoFloat(byte[] byteArray)
to Float
if (byteArray == null || byteArray.length != 4)
    return 0x0;
return Float.intBitsToFloat(toInt(byteArray));
floattoFloat(byte[] bytes)
Presumes float encoded as IEEE 754 floating-point "single format"
return toFloat(bytes, 0);
floattoFloat(byte[] bytes)
Presumes float encoded as IEEE 754 floating-point "single format"
return toFloat(bytes, 0);
floattoFloat(byte[] bytes)
to Float
return Float.intBitsToFloat(((bytes[0] & 0xff) << 8) | (bytes[1] & 0xff) | ((bytes[2] & 0xff) << 24)
        | ((bytes[3] & 0xff) << 16));
floattoFloat(byte[] bytes)
to Float
int intValue = toInt(bytes);
return Float.intBitsToFloat(intValue);
floattoFloat(byte[] bytes, int index)
to Float
return Float.intBitsToFloat(toInt(bytes, index));