Difference between revisions of "LlPow"
Jump to navigation
Jump to search
Benja Kepler (talk | contribs) m ('Can crashes' to 'Can crash') |
(Added Example) |
||
Line 9: | Line 9: | ||
|spec | |spec | ||
|caveats=* Can crash the script. | |caveats=* Can crash the script. | ||
|examples | |examples= | ||
<pre> | |||
default { | |||
state_entry() { | |||
llOwnerSay("llPow(5, .5) (" + (string)llPow(5, .5) + ") is equal to llSqrt(5) (" + llSqrt(5) + ")."); | |||
} | |||
}</pre> | |||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llLog]]|}} | |also_functions={{LSL DefineRow||[[llLog]]|}} |
Revision as of 15:29, 12 October 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llPow( float base, float exponent );5 | Function ID |
0.0 | Forced 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
Examples
default { state_entry() { llOwnerSay("llPow(5, .5) (" + (string)llPow(5, .5) + ") is equal to llSqrt(5) (" + llSqrt(5) + ")."); } }