List of utility methods to do Number Format
String | String2SymbolAmount(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(); ... |