Java Money Format formatMoney(double dtSource)

Here you can find the source of formatMoney(double dtSource)

Description

format Money

License

Apache License

Declaration

public static String formatMoney(double dtSource) 

Method Source Code

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

public class Main {
    public static String formatMoney(double dtSource) {
        java.text.DecimalFormat formatter = new java.text.DecimalFormat("#,###.00");
        return "??" + formatter.format(dtSource);
    }/*from w  w  w . jav a 2s  .c o m*/
}

Related

  1. formatDoubleToMoneyString(double num)
  2. formatMoney(BigDecimal bd)
  3. formatMoney(BigDecimal money, Locale locale)
  4. formatMoney(BigDecimal value)
  5. formatMoney(double cents, Locale locale)
  6. formatMoney(double money, int scalar)
  7. formatMoney(int dosh)
  8. formatMoney(Object str)
  9. formatMoney(String money)