power

Returns m to the power of n.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X       X

Syntax

power (m, n)
numeric     m
int         n

Description

Returns m to the power of n. The base and exponent n can be any number but n is always truncated to an integer before calculation.

Example

{
numeric m;
int     n;

m = 2;
n = 4;
printf(power(m,n));
}
returns 16