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
Tag Archives: Guava-IntMath
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
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
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
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
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
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