public static float buildFloat(int mant,int exp){
  if (exp < -125 || mant == 0) {
    return 0.0f;
  }
  if (exp >= 128) {
    return (mant > 0) ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY;
  }
  if (exp == 0) {
    return mant;
  }
  if (mant >= (1 << 26)) {
    mant++;
  }
  return (float)((exp > 0) ? mant * pow10[exp] : mant / pow10[-exp]);
}

public static float buildFloat ( int mant , int exp ) { if ( exp < - 125 || mant == 0 ) { return 0.0f ; } if ( exp >= 128 ) { return ( mant > 0 ) ? Float . POSITIVE_INFINITY : Float . NEGATIVE_INFINITY ; } if ( exp == 0 ) { return mant ; } if ( mant >= ( 1 << 26 ) ) { mant ++ ; } return ( float ) ( ( exp > 0 ) ? mant * pow10 [ exp ] : mant / pow10 [ - exp ] ) ; }
computes a float from mantissa and exponent .
