Table of Contents

pow

Description

Calculate the value of a base raised to the power of an exponent.

Function prototype

double pow <double:base> <double:expon>

Arguments

Name Type Comment
base double The base value to be raised to the power of expon.
expon double The exponent.

Return value

A double-precision value corresponding to base raised to the power of expon.

Example

echo <zs:pow 2 12>

… the output of which is written to the event log by echo as:

4096

Comments

None.

See also