Java BigInteger Value Check isZero(BigInteger value)

Here you can find the source of isZero(BigInteger value)

Description

is Zero

License

Open Source License

Declaration

public static boolean isZero(BigInteger value) 

Method Source Code


//package com.java2s;
import java.math.BigInteger;

public class Main {
    public static boolean isZero(int value) {
        return value == 0;
    }// w  w w.  j a va 2  s  .  c o m

    public static boolean isZero(BigInteger value) {
        return value.compareTo(BigInteger.ZERO) == 0;
    }

    public static boolean isZero(double value) {
        return value == 0;
    }
}

Related

  1. isPositive(final BigInteger value)
  2. isPowerOfTwo(BigInteger bintValue)
  3. isPowerOfTwo(BigInteger x)
  4. isRootInQuadraticResidues(BigInteger n, BigInteger p)
  5. isSqrtXXX(BigInteger n, BigInteger root)