Math method in java

the java.lang. Math.max (parameter 1, parameter 2) is a method for static tool, primarily for comparing two parameters of the same type, supported types are double, float, int, long four types.

Math.sqrt () // calculate the square root 
Math.cbrt () // calculate the cube root Math.pow (a, b) // a, b calculated power Math.max (,); // calculate the maximum Math.min ( ,); // calculate the minimum

Guess you like

Origin www.cnblogs.com/sgbe/p/11412579.html