Java BigDecimal getIntValue(BigDecimal b)

Here you can find the source of getIntValue(BigDecimal b)

Description

get Int Value

License

Apache License

Declaration

public static int getIntValue(BigDecimal b) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;

public class Main {
    public static int getIntValue(BigDecimal b) {
        if (b == null) {
            return 0;
        }/*from   www .  j  ava2 s . c  om*/
        return b.intValue();
    }
}

Related

  1. getFormattedBigDecimal(BigDecimal value)
  2. getFraction(BigDecimal b)
  3. getFractionalPart(BigDecimal value)
  4. getId(BigDecimal total, BigDecimal step)
  5. getIntLength(BigDecimal val)
  6. getLength(BigDecimal v)
  7. getLet(BigDecimal nl, BigDecimal el)
  8. getLetJp(BigDecimal nl)
  9. getLocalHourMinute(BigDecimal gmtHour)