Math.pow

Math.pow

Class Overview | Class Members | This Package | All Packages

Syntax
public static native double pow( double a, double b )
Parameters
a
a double value.
b
a double value.
Returns
the value ab.
Description
Returns of value of the first argument raised to the power of the second argument.

If (a == 0.0), then b must be greater than 0.0; otherwise an exception is thrown. An exception also will occur if (a <= 0.0) and b is not equal to a whole number.

Exceptions
ArithmeticException if (a == 0.0) and (b <= 0.0), or if (a <= 0.0) and b is not equal to a whole number.