Java Money Format formatMoneyVI(String money)

Here you can find the source of formatMoneyVI(String money)

Description

format Money VI

License

Open Source License

Declaration

public static String formatMoneyVI(String money) 

Method Source Code

//package com.java2s;

public class Main {
    public static String formatMoneyVI(String money) {
        try {// w  w w . j av  a2  s  . c  o  m
            java.text.DecimalFormat df = new java.text.DecimalFormat("#,##0.00");
            return df.format(Double.parseDouble(money));
        } catch (NumberFormatException e) {
        }
        return null;
    }
}

Related

  1. formatMoney(int dosh)
  2. formatMoney(Object str)
  3. formatMoney(String money)
  4. formatMoneyNoSymbol(int pennies)
  5. formatMoneyShort(int pennies)
  6. formatOfRead(BigDecimal money)
  7. formatThousandMoney(String moneyStr)
  8. getMoneyFormat(double money)
  9. getMoneyString(double money)