Java Money Format formatMoney(Object str)

Here you can find the source of formatMoney(Object str)

Description

format Money

License

Apache License

Declaration

public static double formatMoney(Object str) 

Method Source Code

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

import java.text.DecimalFormat;

public class Main {

    public static double formatMoney(Object str) {
        DecimalFormat df = new DecimalFormat("0.00");
        return Double.valueOf(df.format(str)).doubleValue();
    }/*from ww  w  .j  av  a 2s  . c  o  m*/
}

Related

  1. formatMoney(BigDecimal value)
  2. formatMoney(double cents, Locale locale)
  3. formatMoney(double dtSource)
  4. formatMoney(double money, int scalar)
  5. formatMoney(int dosh)
  6. formatMoney(String money)
  7. formatMoneyNoSymbol(int pennies)
  8. formatMoneyShort(int pennies)
  9. formatMoneyVI(String money)