code: @Override
      public StringBuffer format(android.icu.math.BigDecimal number,
                                 StringBuffer toAppendTo,
                                 FieldPosition pos) {
          if (MIN_VALUE.compareTo(number) >= 0 || MAX_VALUE.compareTo(number) <= 0) {
              // We're outside of our normal range that this framework can handle.
              // The DecimalFormat will provide more accurate results.
              return getDecimalFormat().format(number, toAppendTo, pos);
          }
          if (number.scale() == 0) {
              return format(number.longValue(), toAppendTo, pos);
          }
          return format(number.doubleValue(), toAppendTo, pos);
      }
docs: <strong style="font-family: helvetica; color: red;">NEW</strong>
  Implement android.icu.text.NumberFormat:
  Format a BigDecimal.