JavaNumberMath.pow

Returns the value of the first argument raised to the power of the second.

문법

Math.pow(base, exp)

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

System
out
println
Math
System.out.println(Math.pow(2, 10));  // 1024.0
System.out.println(Math.pow(3, 3));  // 27.0