code: public void setMaximumSignificantDigits(int max) {
          if (max < 1) {
              max = 1;
          }
          // pin min sig dig to 1..max
          int min = Math.min(minSignificantDigits, max);
          minSignificantDigits = min;
          maxSignificantDigits = max;
          setSignificantDigitsUsed(true);
      }
docs: <strong>[icu]</strong> Sets the maximum number of significant digits that will be displayed. If
  <code>max</code> is less than one then it is set to one. If the minimum significant
  digits count is greater than <code>max</code>, then it is set to <code>max</code>.
  This function also enables the use of significant digits by this formatter -
  {@link #areSignificantDigitsUsed()} will return true.
  
  @param max the most significant digits to be shown