grib/src/main/java/ucar/nc2/grib/writer/GribToNetcdfWriter.java
public static float bitShave(float value, int bitMask) {
    if (Float.isNaN(value)) return value;   // ??

    int bits = Float.floatToRawIntBits(value);
    int shave = bits & bitMask;
    return Float.intBitsToFloat(shave);
  }
public static float bitShave(float value, int bitMask) {
    if (Float.isNaN(value)) return value;   // ??

    int bits = Float.floatToRawIntBits(value);
    int shave = bits & bitMask;
    return Float.intBitsToFloat(shave);
  }
public static float bitShave ( float value , int bitMask ) { if ( Float . isNaN ( value ) ) return value ; // ?? int bits = Float . floatToRawIntBits ( value ) ; int shave = bits & bitMask ; return Float . intBitsToFloat ( shave ) ; }
Shave n bits off the float
@param value    original floating point
@param bitMask  bitMask from getBitMask()
@return modified float
Shave n bits off the float