code: public static int getExponent(float f){
          /*
           * Bitwise convert f to integer, mask out exponent bits, shift
           * to the right and then subtract out float's bias adjust to
           * get true exponent value
           */
          return ((Float.floatToRawIntBits(f) & FloatConsts.EXP_BIT_MASK) >>
                  (FloatConsts.SIGNIFICAND_WIDTH - 1)) - FloatConsts.EXP_BIAS;
      }
docs: Returns unbiased exponent of a {@code float}.