Java Date Format As fmtBdToString(BigDecimal bd, DecimalFormat df)

Here you can find the source of fmtBdToString(BigDecimal bd, DecimalFormat df)

Description

fmt Bd To String

License

Open Source License

Declaration

public static String fmtBdToString(BigDecimal bd, DecimalFormat df) 

Method Source Code

//package com.java2s;

import java.math.BigDecimal;

import java.text.DecimalFormat;

public class Main {
    public static String fmtBdToString(BigDecimal bd, DecimalFormat df) {
        if (bd == null)
            return "";
        return df.format(bd.doubleValue());
    }/*w  w  w.  j a va 2 s .  c  o  m*/
}

Related

  1. fmt(double d)
  2. fmt(double num, int minIntDigits, int maxFracDigitis)
  3. fmt(long count)
  4. fmt(String pattern, Object... args)
  5. fmtDate(Date date)
  6. fmtDate(Date date)
  7. fmtDateTime(final Date dateTime, final String simpleDateTimeFormat)
  8. fmtMsg(final String fmt, final String arg)