Math method in java




Math method used to perform mathematical operation.



Methods



S.No Methods Explain
Math.abs() It's return the absolute value.
Math.max() It's return the maximum value of two number.
Math.min() It's return the manimum value of two number.
Math.round() It's return the round value of the decimal value.
Math.pow() It's return the power of the given number.
Math.sqrt() It's return the square root value.
Math.cbrt() It's return the cube root value.
Math.signum() It's return the sign of the number.
Math.ceil() It's return the sign of the number.
Math.copySign() It's return the sign of the number.
Math.random() It's return the sign of the number.