UnitPrefix unitPrefix = UnitPrefix.findAppropiatePrefix(number, unitPrefixArray);
UnitPrefix unitPrefix = UnitPrefix.findAppropriatePrefix(number, unitPrefixArray);
    public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition fieldPosition) {        StringBuffer result = toAppendTo;        UnitPrefix unitPrefix = UnitPrefix.findAppropiatePrefix(number, unitPrefixArray);        if (unitPrefix == null) {            result = super.format(number, toAppendTo, fieldPosition);        } else {            double convertedNumber = unitPrefix.adjustScale(number);            result = super.format(convertedNumber, toAppendTo, fieldPosition);            // ENHANCEME: Would be nice to be able to specify the place for              //            the unit symbol via the format string.             result.append(" ").append(unitPrefix.unitSymbol());        }        return result;     }