Skip to content

Tag Archives: java-math

The multiplyFull(int x, int y) method of Math class is used to return the exact mathematical product of the two arguments. In the parameters, two… Read More
The multiplyFull(int x, int y) method of StrictMath class is used to return the exact mathematical product of the two arguments. In the parameters, two… Read More
The multiplyHigh(long x, long y) method of Math class is used to return the most significant 64 bits from the 128-bit product of two 64-bit… Read More
In Math class, there are two types of fma() method depending upon the parameters passed to it. The methods are: fma(double a, double b, double… Read More
ulp(double num) The ulp(double num) is an inbuilt method of StrictMath class in java which is used to get the size of an ulp of… Read More
The java.lang.StrictMath.toIntExact() is an inbuilt method in Java is used to return the value of the long argument. If the result overflows an int it… Read More
subtractExact(int num1, int num2) The subtractExact(int num1, int num2) is an inbuilt method of StrictMath class in java which is used to get the difference… Read More
java.math.BigInteger.sqrt() 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.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.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
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.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.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
The scalb(double num, int scale) is an inbuilt method of StrictMath class in Java which is used to calculate num * 2^scale and rounded as… Read More
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

Start Your Coding Journey Now!