Java BigDecimal Format fmtBdToInt(BigDecimal bd)

Here you can find the source of fmtBdToInt(BigDecimal bd)

Description

fmt Bd To Int

License

Open Source License

Declaration

public static int fmtBdToInt(BigDecimal bd) 

Method Source Code

//package com.java2s;

import java.math.BigDecimal;

public class Main {
    public static int fmtBdToInt(BigDecimal bd) {
        if (bd == null)
            return 0;
        return bd.intValue();
    }/*www .j  a  v a  2 s .c om*/
}

Related

  1. format(BigDecimal amount, String format)
  2. format(BigDecimal decData, int precision, int scale)
  3. format(BigDecimal decimal)
  4. format(BigDecimal n, int prec)