Java Currency Format currencyFormat()

Here you can find the source of currencyFormat()

Description

currency Format

License

Open Source License

Declaration

public static NumberFormat currencyFormat() 

Method Source Code

//package com.java2s;

import java.text.NumberFormat;

public class Main {
    public static NumberFormat currencyFormat() {
        NumberFormat format = NumberFormat.getNumberInstance();
        format.setMaximumFractionDigits(2);
        format.setMinimumFractionDigits(2);
        return format;
    }//from   w ww. j av a 2s  .co m
}

Related

  1. currency(double amount, String language, String country)
  2. currency(double amount, String language, String country)
  3. currency(double value, NumberFormat nformat)
  4. format2CurrencyWithComma(double amt)
  5. formatAsCurrency(BigDecimal nAmount)
  6. formatAsCurrency(final double value)
  7. formatAsCurrency(Number amount)