Question: Can you provide the Basic Math methods?
Answer: Basic Math methods
Method: Math.abs()
Description: It will return the Absolute value of the given value.


Method:Math.max()
Description: It returns the Largest of two values.


Method:Math.min()
Description: It is used to return the Smallest of two values.


Method:Math.round()
Description: It is used to round of the decimal numbers to the nearest value.


Method:Math.sqrt()
Description: It is used to return the square root of a number.


Method:Math.cbrt()
Description: It is used to return the cube root of a number.


Method:Math.pow()
Description: It returns the value of first argument raised to the power to second argument.


Method:Math.signum()
Description: It is used to find the sign of a given value.


Method:Math.ceil()
Description: It is used to find the smallest integer value that is greater than or equal to the argument or mathematical integer.


Method:Math.copySign()
Description: It is used to find the Absolute value of first argument along with sign specified in second argument.


Method:Math.nextAfter()
Description: It is used to return the floating-point number adjacent to the first argument in the direction of the second argument.


Method:Math.nextUp()
Description: It returns the floating-point value adjacent to d in the direction of positive infinity.


Method:Math.nextDown()
Description: It returns the floating-point value adjacent to d in the direction of negative infinity.


Method:Math.floor()
Description: It is used to find the largest integer value which is less than or equal to the argument and is equal to the mathematical integer of a double value.


Method:Math.floorDiv()
Description: It is used to find the largest integer value that is less than or equal to the algebraic quotient.


Method:Math.random()
Description: It returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0.


Method:Math.rint()
Description: It returns the double value that is closest to the given argument and equal to mathematical integer.


Method:Math.hypot()
Description: It returns sqrt(x2 +y2) without intermediate overflow or underflow.


Method:Math.ulp()
Description: It returns the size of an ulp of the argument.


Method:Math.getExponent()
Description: It is used to return the unbiased exponent used in the representation of a value.


Method:Math.IEEEremainder()
Description: It is used to calculate the remainder operation on two arguments as prescribed by the IEEE 754 standard and returns value.


Method: Math.addExact()
Description: It is used to return the sum of its arguments, throwing an exception if the result overflows an int or long.


Method:Math.subtractExact()
Description: It returns the difference of the arguments, throwing an exception if the result overflows an int.


Method: Math.multiplyExact()
Description: It is used to return the product of the arguments, throwing an exception if the result overflows an int or long.


Method: Math.incrementExact()
Description: It returns the argument incremented by one, throwing an exception if the result overflows an int.


Method:Math.decrementExact()
Description: It is used to return the argument decremented by one, throwing an exception if the result overflows an int or long.


Method:Math.negateExact()
Description: It is used to return the negation of the argument, throwing an exception if the result overflows an int or long.


Method:Math.toIntExact()
Description: It returns the value of the long argument, throwing an exception if the value overflows an int.