Java Currency Format formatCurrency(Object value)

Here you can find the source of formatCurrency(Object value)

Description

format Currency

License

Open Source License

Declaration

public static String formatCurrency(Object value) 

Method Source Code

//package com.java2s;
//    it under the terms of the GNU General Public License as published by

import java.text.NumberFormat;

public class Main {
    public static String formatCurrency(Object value) {
        NumberFormat m_currencyformat = NumberFormat.getCurrencyInstance();
        return m_currencyformat.format(((Number) value).doubleValue());
    }/*  w w  w .j a va2  s  .co m*/
}

Related

  1. formatCurrency(final Double currencyValue, final Locale locale, final boolean isGroup)
  2. formatCurrency(Float amt)
  3. formatCurrency(Float f)
  4. formatCurrency(int amount)
  5. formatCurrency(Number currencyValue)
  6. formatCurrency(String currency)
  7. formatCurrencyWithCurrencyUnit(double amt, int fractionDigits)
  8. getCurrencyFormat()
  9. getCurrencyFormat(final Locale locale)