StrictMath class Methods in Java Part -III

java.lang.StrictMath

The class StrictMath contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.


Some of the Methods of  StrictMath class.


StrictMath.max(double, double): This method returns the greater of two double values.


StrictMath.max(float, float)This method returns the greater of two float values.


StrictMath.max(int, int)This method returns the greater of two int values.


StrictMath.max(long, long)This method returns the greater of two long values.


StrictMath.min(double, double)This method returns the smaller of two double values.


StrictMath.min(float, float)This method returns the smaller of two float values.


StrictMath.min(int, int)This method returns the smaller of two int values.


StrictMath.min(long, long)This method returns the smaller of two long values.


StrictMath.multiplyExact(int, int)This method returns the product of the arguments, throwing an exception if the result overflows an int.


StrictMath.multiplyExact(long, long) This method returns the product of the arguments, throwing an exception if the result overflows a long.


StrictMath.multiplyExact(long, int) This method returns the product of the arguments, throwing an exception if the result overflows a long.


StrictMath.multiplyFull()This method returns the exact mathematical product of the arguments.


StrictMath.multiplyHigh()This method Returns as a long the most significant 64 bits of the 128-bit product of two 64-bit factors.


StrictMath.negateExact(int)This method returns the negation of the argument, throwing an exception if the result overflows an int. 


StrictMath.negateExact(long)This method returns the negation of the argument, throwing an exception if the result overflows a long. 


StrictMath.nextAfter(double, double)This method returns the floating-point number adjacent to the first argument in the direction of the second argument.


StrictMath.nextAfter(float, double)This method returns the floating-point number adjacent to the first argument in the direction of the second argument.


StrictMath.nextDown(double)This method returns the floating-point value adjacent to the double value in the direction of negative infinity.


StrictMath.nextDown(float)This method returns the floating-point value adjacent to the float value in the direction of negative infinity.


Constants of StrictMath ClassSome of the constants of StrictMath class.


Some more Methods of StrictMath class Part -I


Some more Methods of StrictMath class Part -II


Some more Methods of StrictMath class Part -IV


No comments:

Post a Comment