iDevOS CALC "POW" Command
Get the result of one number raised to the power of another.
Description
CALC( y, a, b, "POW" ); // y = pow(a, b) = a raised to the power of b
This command returns the value y which is the calculation of a raised to the power of b.
Parameters
y- Calculation result.
Parameter type: entity name of a numeric variable (egU8,S32,FLT3etc). aandb- Input values.
Parameter type: immediate number, or entity name of a numeric variable (egU8,S32,FLT3etc). "POW"- CALC command operator.
Parameter type: immediate string.
Examples
Example 1
VAR(d, 0, U32);
VAR(a, 4, U32);
VAR(b, 8, U32);
CALC(d, a, b, "POW"); // d = 65536

