pow()

Returns a result of raising to power

Syntax

pow(base, exponent )

Learn more about syntax conventions.

Parameters

Name Type Required Description
base int, real, or long ✔️ The base value.
exponent int, real, or long ✔️ The exponent value.

Returns

Returns base raised to the power exponent: base ^ exponent.

Example

print result=pow(2, 3)

Output

result
8