Java BigDecimal Format formatManey(BigDecimal date)

Here you can find the source of formatManey(BigDecimal date)

Description

format Maney

License

Open Source License

Declaration

public static String formatManey(BigDecimal date) 

Method Source Code


//package com.java2s;
import java.math.BigDecimal;

public class Main {

    public static String formatManey(BigDecimal date) {
        java.text.DecimalFormat df = new java.text.DecimalFormat("#.00");
        return df.format(date);
    }//w  ww.j  av a2  s .co  m
}

Related

  1. formate(BigDecimal amount)
  2. formatFAAssertRatioWithoutPercent(BigDecimal value)
  3. formatFileSize(double size)
  4. formatFloat0(String value, int n)
  5. formatForPercentage(BigDecimal value)
  6. formatMoney(BigDecimal money, int scale, double divisor)
  7. formatMoney(long value)
  8. formatNoDecimalPoint(double amt)
  9. formatNumber(double number)