public static String getLocalizedNumber(double number, Locale locale) {
        return NumberFormat.getInstance(locale).format(number);
    }
Returns an internationalized String representation of the number using
the specified locale.

@param number the number to format.
@param locale the locale to use for formatting.
@return an internationalized String representation of the number.
xmppserver/src/main/java/org/jivesoftware/util/LocaleUtils.java