Java Money Format getMoneyFormat(double money)

Here you can find the source of getMoneyFormat(double money)

Description

get Money Format

License

Apache License

Declaration

public static String getMoneyFormat(double money) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.DecimalFormat;

public class Main {

    public static String getMoneyFormat(double money) {
        DecimalFormat df = new DecimalFormat("#,##0.00");
        return df.format(money);
    }//from w  w w  .java 2 s  . com
}

Related

  1. formatMoneyNoSymbol(int pennies)
  2. formatMoneyShort(int pennies)
  3. formatMoneyVI(String money)
  4. formatOfRead(BigDecimal money)
  5. formatThousandMoney(String moneyStr)
  6. getMoneyString(double money)
  7. hourAndMinutesToString(int hours, int minutes)
  8. moneyDelFormat(String s)
  9. str2money(String str)