# Tag Archives: Guava-IntMath

## Java Guava | IntMath.divide(int, int, RoundingMode) method with Examples

The divide(int p, int q, RoundingMode mode) method of Guava’s IntMath Class accepts three parameters and calculates the result of dividing first parameter by second… Read More »

## Java Guava | IntMath.checkedPow(int b, int k) method with Examples

checkedPow(int b, int k) is a method of Guava’s IntMath Class which accepts two parameters b and k and is used to find the k-th… Read More »

## Java Guava | IntMath.checkedMultiply(int a, int b) method with Examples

The checkedMultiply(int a, int b) is a method of Guava’s IntMath Class which accepts two parameters a and b, and returns their product. Syntax: public… Read More »

## Java Guava | IntMath.checkedAdd(int a, int b) method with Examples

The checkedAdd(int a, int b) is a method of Guava’s IntMath Class which accepts two parameters a and b, and returns their sum. Syntax: public… Read More »

## Java Guava | IntMath.checkedSubtract(int a, int b) method with Examples

The checkedSubtract(int a, int b) is a method of Guava’s IntMath Class which accepts two parameters a and b, and returns their difference. Syntax: public… Read More »

## Java Guava | IntMath log10(int x, RoundingMode mode) method with Examples

The log10(int x, RoundingMode mode) method of Guava’s IntMath Class accepts two parameters and calculates the base-10 logarithmic value of the first parameter rounded according… Read More »

## Java Guava | gcd(int a, int b) method of IntMath Class

The method gcd(int a, int b) of Guava’s IntMath class returns the greatest common divisor of a, b. Syntax : public static int gcd(int a,… Read More »