Syntax

float llPow( float base, float exponent );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

float base
float exponent

Returns NaN when base is negative and exponent is not an integer (an imaginary result, (exponent != (integer)exponent) && (base < 0.0)).

Return value

Returns a float that is base raised to the power exponent (baseexponent)

Caveats

Examples

default {
     state_entry() {
          llOwnerSay("llPow(5, .5) (" + (string)llPow(5, .5) + ") is equal to llSqrt(5) (" 
                      + (string)llSqrt(5) + ").");
     }
}

See also

Functions