pow()

Returns the result of a number raised to a power.

Syntax

pow(NUM_EXPR, POWER)
Required Parameters
NUM_EXPR
Expression that returns a base number.
POWER
Expression that returns a power exponent.

Usage

json "{}" | eval pow=pow(2, 0) => 1

json "{}" | eval pow=pow(2, 1) => 2

json "{}" | eval pow=pow(2, 2) => 4