List of utility methods to do Float Number Create
float | toFloat(byte[] bytes, int offset) to Float return Float.intBitsToFloat(toInt(bytes, offset));
|
float | toFloat(byte[] data) to Float if ((data == null) || (data.length != 4)) { return 0x0; return Float.intBitsToFloat(toInt(data)); |
float | toFloat(byte[] data) Convert byte array to float if (data == null || data.length != 4) return 0x0; return Float.intBitsToFloat(toInt(data)); |
float | toFloat(byte[] data, int offset) to Float int i = toInt(data, offset); return Float.intBitsToFloat(i); |
float | toFloat(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; |
float | toFloat(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; |
float | toFloat(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; |