LlPow

From Second Life Wiki

Jump to: navigation, search

Contents

Description

Function: float llPow( float base, float exponent );
5 Function ID
0.0 Delay
10.0 Energy

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

• float base
• float exponent


Triggers a Math Error for imaginary results ((exponent != (integer)exponent) && (base < 0.0))

Caveats

  • Can crash the script.

Examples

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

See Also

Functions

•  llLog
•  llLog10
•  llSqrt
Personal tools