power()

Scalar. Returns the value of a given base raised to a specified exponent.

Syntax

power ( base, exponent ) 

Parameters

base

Any numeric type.

exponent

Float that specifies the number that the base will be raised to.

Usage

Returns the value of a given base raised to a specified exponent. The function takes a numeric type for the base argument, but the exponent must be a float. The function returns the same datatype as the base argument.

Example

power (2.0, 3.0) returns 8.0.