Pow (open)
Calculates a value of a power equation.
Syntax
LOADLIB "wh::float.whlib";
FLOAT FUNCTION Pow(FLOAT value, FLOAT exp)
Parameters
FLOAT value
The FLOAT value which is the base of the calculation
FLOAT exp
The FLOAT value which is the exponent of the calculation
Return value
FLOAT
@italic value to the power of @italic exp
Description
This function calculates the result of @italic value to the power of @italic exp. If value = 0 and exp < 0 or if value < 0 and exp is not a whole number, an errors occurs.
Examples
// The FLOAT value will be 243.0
FLOAT f := Pow(9, 2.5);