Java Bits Convert to bitsToFloats(boolean[] b)

Here you can find the source of bitsToFloats(boolean[] b)

Description

bits To Floats

License

Open Source License

Declaration

public static float[] bitsToFloats(boolean[] b) 

Method Source Code

//package com.java2s;
/** Ben F Rayfield offers this software opensource MIT license */

public class Main {
    public static float[] bitsToFloats(boolean[] b) {
        float[] f = new float[b.length];
        for (int i = 0; i < b.length; i++) {
            f[i] = b[i] ? 1 : 0;//from   ww w.j  av  a 2  s  .c om
        }
        return f;
    }
}

Related

  1. bitsRequiredForFraction(String floatnumber)
  2. bitsString2(byte b)
  3. bitsTo8Bytes(boolean[] bits)
  4. bitsToBase64(byte data)
  5. bitsToDouble(String bits, double min, double max, int splits)
  6. bitsToTransform(int src, int target)
  7. bitStr(long value)
  8. bitString(boolean value)
  9. bitString(byte b)