Java BigInteger Calculate intValueExact(BigInteger bigint)

Here you can find the source of intValueExact(BigInteger bigint)

Description

int Value Exact

License

Open Source License

Declaration

public static int intValueExact(BigInteger bigint) 

Method Source Code

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

import java.math.BigInteger;

public class Main {
    public static int intValueExact(BigInteger bigint) {
        if (bigint == null || bigint.bitLength() > 31) {
            throw new ArithmeticException();
        }//from  www. j  a va 2s . c om
        return bigint.intValue();
    }
}

Related

  1. hexEncode(BigInteger bigInteger)
  2. increment(BigInteger integer)
  3. int2zpBin(BigInteger num, int len)
  4. integerToString(BigInteger value)
  5. intValue(BigInteger bi)
  6. jsonBigInteger(JsonValue value)
  7. length(BigInteger bi)
  8. listToBigInteger(List list)
  9. log2(BigInteger x)