Pow

(Engine-Level Function)

Description: Returns a number raised to a power.
Returns: Numeric
Usage: Script or steady state.
Function Groups: Generic Math
Related to: Exp | Ln | Log
Format: Pow(X, Exponent)
Parameters:  
X
Required. Any numeric expression giving the number to be raised to the power of Exponent.
Exponent
Required. Any numeric expression giving the number to which X should be raised.
Comments: This function may be used to perform the common antilogarithm by using 10 for X. The return value is invalid if X is less than or equal to 0 and Exponent is not a numeric.

This function does calculations with double-precision floating point values and does not support 64-bit integers computations.

Rather than using something like "And(X, Pow(2, 63))" to get the top bit in a 64-bit integer, use the SetBit function.

Examples:

r = Pow( 2, 4);
s = Pow(10, 2);
t = Pow(64, 0.5);

The values of r, s, and t will be 16, 100, and 8 respectively.