# Tag Archives: java-math

## Math multiplyFull() method in Java with Examples

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 »

## StrictMath multiplyFull() method in Java with Examples

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 »

## Math multiplyHigh() method in Java with Examples

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 »

## Math fma() method in Java with Examples

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 »

## StrictMath ulp() Method In Java with Examples

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 »

## StrictMath toIntExact() Method in Java with Examples

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 »

## StrictMath subtractExact() in Java With Examples

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 »

## 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 »

## StrictMath scalb() Method in Java

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 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 »