code: public String format(Object number) {
           synchronized (fmt) {
               return style.format(
                       fmt.formatToCharacterIterator(number),
                       preExponent);
           }
       }
docs: Formats a number
  @param number Can be a double, int, Number or
  anything that DecimalFormat#format(Object) accepts.
  @return the formatted string.