Java Money Format getMoneyString(double money)

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

Description

get Money String

License

Open Source License

Declaration

public static String getMoneyString(double money) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class Main {
    public static String getMoneyString(double money) {

        NumberFormat nf = NumberFormat.getInstance();
        ((DecimalFormat) nf).applyPattern("#,000.00");
        String moneyStr = nf.format(money);
        return "" + moneyStr;
    }//from  w w  w . ja  va2s  .  co m
}

Related

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