Java Fraction Format formatManeyPattern(String pattern, Double amount)

Here you can find the source of formatManeyPattern(String pattern, Double amount)

Description

format Maney Pattern

License

Open Source License

Declaration

public static String formatManeyPattern(String pattern, Double amount) 

Method Source Code


//package com.java2s;

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

public class Main {
    public static String formatManeyPattern(String pattern, Double amount) {
        NumberFormat nf = new DecimalFormat(pattern);
        return nf.format(amount);
    }//  w w  w .j  ava  2 s.  c om
}

Related

  1. formatIndexValuePairs(List indicies, List values, String valueSeparator, String rangeSeparator)
  2. formatInt(double value)
  3. formatIntoCurr(double num, int digits)
  4. formatIntRate(double rateInt)
  5. formatKnots(double v)
  6. formatMetricsDecimal(double value)
  7. formatNoGrouping(double value)
  8. formatNormalDouble(double value)
  9. formatNum(double d)