pow/3—raise a number to a specified power


The pow/3 function raises the number specified in the $NUMBER argument to the power specified in the $POWER argument and returns the result in $RESULT.

The pow/3 function raises a number to a specified power.

$RESULT=pow($NUMBER,$POWER)

pow/3 arguments

Argument

Mode

Type

Description

$NUMBER

Input

INTEGER|REAL

Specifies the numeric (integer or real) value to be raised to the specified power

$POWER

Input

INTEGER|REAL

Specifies the power to which the numeric value is to be raised

$RESULT

Output

REAL

Returns the number raised to the power

Note

The exponentiation operator ^ can only be used with integer powers. For non-integer powers, pow/3 must be used.

pow/3 example

$POW = pow( $VAL , 3.14 );

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*