## BigIntegerMath floorPowerOfTwo() function | Guava | Java

The method floorPowerOfTwo(BigInteger x) of Guava’s BigIntegerMath class returns the largest power of two less than or equal to x. This is equivalent to BigInteger.valueOf(2).pow(log2(x,… Read More »

## BigIntegerMath isPowerOfTwo() function | Guava | Java

The method isPowerOfTwo(BigInteger x) of Guava’s BigIntegerMath class returns true if x represents a power of two. Syntax: public static boolean isPowerOfTwo(BigInteger x) Parameters: This… Read More »

## BigIntegerMath factorial() function | Guava | Java

The method factorial(int n) of Guava’s BigIntegerMath class is used to find the factorial of the given number. It returns n!, that is, the product… Read More »

## BigInteger sqrt() Method in Java

java.math.BigInteger.byteValueExact() is an inbuilt function added in Java SE 9 & JDK 9 which returns BigInteger value of square root of a BigInteger on which… Read More »

## Java 8 | BigInteger divideAndRemainder() method with Examples

java.math.BigInteger.divideAndRemainder(BigInteger val) was introduced in Java 8. This method returns an array of two BigInteger after applying division operation between the BigInteger calling this method… Read More »

## Java 8 | BigInteger shortValueExact() Method with Examples

java.math.BigInteger.shortValueExact() was introduced in Java 8. It is an inbuilt function which converts the value of BigInteger to a short and checks for lost information.… Read More »

## BigInteger intValueExact() Method in Java with Examples

java.math.BigInteger.intValueExact() was introduced in Java 8. It is an inbuilt function which converts the value of BigInteger to a int and checks for lost information.… Read More »

## Java 8 | BigInteger byteValueExact() method with Examples

java.math.BigInteger.byteValueExact() was introduced in Java 8. It is an inbuilt function which converts the value of BigInteger to a byte and checks for any lost… Read More »

## Java 8 | BigInteger longValueExact() Method with Examples

java.math.BigInteger.longValueExact() was introduced in Java 8. It is an inbuilt function which converts the value of BigInteger to a long and checks for lost information.… Read More »

## Hyperfactorial of a number

Given a number, the task is to find the hyperfactorial of a number. The result of multiplying a given number of consecutive integers from 1… Read More »

## BigInteger toString() Method in Java

BigInteger Class offers 2 methods for toString(). toString(int radix): The java.math.BigInteger.toString(int radix) method returns the decimal String representation of this BigInteger in given radix. Radix… Read More »

## BigInteger toByteArray() Method in Java

The java.math.BigInteger.toByteArray() method returns a array of byte containing the two’s-complement representation of this BigInteger. The most significant byte of byte array is present in… Read More »

## BigInteger valueOf() Method in Java

The java.math.BigInteger.valueOf(long value) method returns a BigInteger whose value is equal to value of long passed as parameter. This method is static method so It… Read More »

## BigInteger mod() Method in Java

The java.math.BigInteger.mod(BigInteger big) method returns a BigInteger whose value is equal to (this BigInteger modfunction big(BigInteger passed as parameter)).In other words we can say that… Read More »

## BigInteger equals() Method in Java

The java.math.BigInteger.equals(Object x) method compares this BigInteger with the object passed as the parameter and returns true in both are equal in value else it… Read More »