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[] bytes, int offset)
to Float
return Float.intBitsToFloat(toInt(bytes, offset));
floattoFloat(byte[] data)
to Float
if ((data == null) || (data.length != 4)) {
    return 0x0;
return Float.intBitsToFloat(toInt(data));
floattoFloat(byte[] data)
Convert byte array to float
if (data == null || data.length != 4)
    return 0x0;
return Float.intBitsToFloat(toInt(data));
floattoFloat(byte[] data, int offset)
to Float
int i = toInt(data, offset);
return Float.intBitsToFloat(i);
floattoFloat(byte[] si, boolean isReverseOrder)
Convert a byte[] to the corresponding float value.
float f = 0.0F;
int i = toInt(si, isReverseOrder);
f = Float.intBitsToFloat(i);
return f;
floattoFloat(byte[] value)
to Float
int intValue = toInt(value);
float result = Float.intBitsToFloat(intValue);
return result;
float[][]toFloat(byte[][] a)
to Float
float[][] b = new float[a.length][a[0].length];
for (int i = 0; i < a.length; i++)
    for (int j = 0; j < a[0].length; j++) {
        b[i][j] = (float) a[i][j];
return b;
floattoFloat(double in1)
Conversione da double a float
return (float) in1;
float[]toFloat(double[] a)
to Float
float[] re = new float[a.length];
for (int i = 0; i < re.length; i++)
    re[i] = (float) a[i];
return re;
float[]toFloat(double[] a)
Convert the input array to a float
if (a == null)
    return null;
float[] b = new float[a.length];
for (int i = 0; i < a.length; i++)
    b[i] = (float) a[i];
return b;