Java Bits Convert to bits2float(int i)

Here you can find the source of bits2float(int i)

Description

bitsfloat

License

LGPL

Declaration

static float bits2float(int i) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    static float bits2float(int i) {
        //System.out.println(i);
        float res = Float.intBitsToFloat(i);
        //System.out.println("f: "+res);
        return res;
    }/*from  w w w .j a va2s .c  o m*/

    static float bits2float(long i) {
        //System.out.println(i);
        float res = Float.intBitsToFloat((int) i);
        //float res = (float)Double.longBitsToDouble(i & 0xffffffffl);
        //System.out.println("f: "+res);
        return res;
    }
}

Related

  1. bitReverse31(int i)
  2. bitrv208(double[] a, int offa)
  3. bitrv208neg(double[] a, int offa)
  4. bitrv216neg(double[] a, int offa)
  5. bitrv2conj(int n, int[] ip, double[] a, int offa)
  6. bits2Numeric(boolean[] in)
  7. bitsArrayToByte(byte[] bits)
  8. bitscanForward(long bitboard)
  9. bitsCleanup(int base, int[] bits)