Android Utililty Methods Number Format

List of utility methods to do Number Format

Description

The list of methods to do Number Format are organized into topic(s).

Method

StringString2SymbolAmount(String str)
String Symbol Amount
try {
    String tempStr = NumberFormat.getNumberInstance()
            .format(Long.parseLong(str, 10)).replace(",", "");
    double temp = Long.parseLong(tempStr) / 100.00;
    return NumberFormat.getCurrencyInstance(Locale.CHINA).format(
            temp);
} catch (Exception e) {
    e.printStackTrace();
...