Java BigDecimal intValue(BigDecimal a)

Here you can find the source of intValue(BigDecimal a)

Description

int Value

License

Open Source License

Declaration

public static int intValue(BigDecimal a) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

public class Main {

    public static int intValue(Integer a) {
        if (a == null) {
            return 0;
        }//from  w  w w .j  ava 2s. co m

        return a.intValue();
    }

    public static int intValue(BigDecimal a) {
        if (a == null) {
            return 0;
        }

        return a.intValue();
    }
}

Related

  1. hasSignedChanged(final BigDecimal v1, final BigDecimal v2)
  2. htmlFooter(String providerNo, int count, BigDecimal total)
  3. humanReadableByteCount(BigDecimal bytes, Boolean si)
  4. incRatio(BigDecimal o1, BigDecimal o2)
  5. intToBigDecimal(int i)
  6. inverse(final BigDecimal amount)
  7. invert(BigDecimal d)
  8. joinBigDecimals(List list)
  9. jsonNumberToBigDecimal(final JsonNumber n, final int defaultValue)