자바 수학 key methods

# The key methods in Math

import static java.lang.Math.*;

# abs

    System.out.println(abs(-34.5)); // 34.5
1

# ceil

    System.out.println(ceil(2.17)); // 3.0
1

# floor

    System.out.println(floor(3.14)); // 3.0
1

# min

    System.out.println(min(10, -4)); // -4
1

# max

   System.out.println(max(3.14, 10)); // 10
1

# pow

    System.out.println(pow(5, 2)); // 25.0
1

# sqrt

    System.out.println(sqrt(225)); // 15.0
1