SYNOPSIS

float pow( int|float base, int|float exp)

DESCRIPTION

The function returns the value of base raised to the power of exp.

USAGE

pow(-2, 3)      // returns -8.0
pow(8, 1.0/3.0) // returns 2.0

HISTORY

  • introduced (3.2.7)
  • changed (3.2.9) – added integers as arguments.

SEE ALSO

exp(E), log(E)