Shiny Language Reference
Language Reference > Math Functions
pow
double pow(double Param, int Power);
Calculates Param to the power of Power
Returns Param raised to the power of Power
Parameters
Param
Value to raise
Power
Exponent
Return Value
Param to the power of Power
Example Code
// Calculate 5 to the power of 3
double Res = pow(5, 3);