Difference between revisions of "LlPow"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:
|func_sleep=0.0
|func_sleep=0.0
|func_energy=10.0
|func_energy=10.0
|func_footnote=Triggers a [[LSL_Math_Error|Math Error]] for imaginary results (exponent != (integer)exponent && base < 0.0)
|func_footnote=Triggers a [[LSL_Math_Error|Math Error]] for imaginary results ((exponent != (integer)exponent) && (base < 0.0))
|p1_type=float
|p1_type=float
|p1_name=base
|p1_name=base
Line 22: Line 22:
|p12_type|p12_name|p12_desc
|p12_type|p12_name|p12_desc
|return_type=float
|return_type=float
|return_text=that is the square root of val.
|return_text=that is base raised to the power exponent.
|spec
|spec
|caveats=* Crashes the script if passed a negative number.
|caveats=* Can crashes the script.
|examples
|examples
|helpers
|helpers
Line 34: Line 34:
[[Category:LSL_Math]]
[[Category:LSL_Math]]
[[Category:LSL_Error/Math]]
[[Category:LSL_Error/Math]]
{{lowercase|llPow}}
__NOTOC__
== Specification ==
<div style="padding: 0.5em">
Returns base raised to the exp.
Returns 0 and triggers a Math Error for imaginary results
{|
|-
| [[LSL_Energy|Energy]]:
| 10.0
|-
| [[LSL_Sleep|Sleep]]:
| 0.0
|-
| [[LSL_Function_ID|Function ID]]:
| 5
|}
</div>
</div>
|-
|
<div id="box">
== Caveats ==
<div style="padding: 0.5em">
</div>
</div>
|-
|
<div id="box">
== Examples ==
<div style="padding: 0.5em">
<lsl>
</lsl>
</div>
</div>
|-
|
<div id="box">
== Helper Functions ==
<div style="padding: 0.5em">
<lsl>
</lsl>
</div>
</div>
|-
|
<div id="box">
== See Also ==
<div style="padding: 0.5em">
</div>
</div>
|-
|
<div id="box">
== Notes ==
<div style="padding: 0.5em">
</div>
</div>
|}
[[Category:LSL_Functions]]
[[Category:LSL_Math]]

Revision as of 19:57, 25 January 2007

   Outdated templated used

Please change the template from 'LSLFunctionAll' to 'LSL_Function' (just replace 'LSLFunctionAll' with 'LSL_Function', do this after fixing any other erorr messages.

Summary

Function: float llPow( float base, float exponent );

Returns a float that is base raised to the power exponent.

• float base
• float exponent

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

Caveats

  • Can crashes the script.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function float llPow( float base, float exponent );