Difference between revisions of "LlSqrt"

From Second Life Wiki
Jump to navigation Jump to search
m (LlSqrt moved to LSL llSqrt)
Line 1: Line 1:
{{lowercase|llSqrt}}
{{LSLFunctionAll
__NOTOC__
|func=llSqrt
 
|func_id=4
{| width="100%"
|func_sleep=0.0
|-
|func_energy=10.0
|<div id="box">
|func_footnote=Triggers a [[LSL_Math_Error|Math Error]] for imaginary results (val < 0.0)
== [[LSL_Type_float|float]] llSqrt( [[LSL_Type_float|float]] val); ==
|p1_type=float
<div style="padding: 0.5em">
|p1_name=val
* val - positive number.
|p1_desc=positive number
</div>
|p2_type|p2_name|p2_desc
</div>
|p3_type|p3_name|p3_desc
|-
|p4_type|p4_name|p4_desc
|
|p5_type|p5_name|p5_desc
<div id="box">
|p6_type|p6_name|p6_desc
 
|p7_type|p7_name|p7_desc
== Specification ==
|p8_type|p8_name|p8_desc
<div style="padding: 0.5em">
|p9_type|p9_name|p9_desc
Returns the square root of val.
|p10_type|p10_name|p10_desc
Returns 0 and triggers a Math Error for imaginary results
|p11_type|p11_name|p11_desc
{|  
|p12_type|p12_name|p12_desc
|-
|return_type=float
| [[LSL_Energy|Energy]]:
|return_text=that is the square root of val.
| 10.0
|spec
|-
|caveats=* Crashes the script if passed a negative number.
| [[LSL_Sleep|Sleep]]:
|examples
| 0.0
|helpers
|-
|also
| [[LSL_Function_ID|Function ID]]:
|notes
| 4
}}
|}
</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_Functions]]
[[Category:LSL_Math]]
[[Category:LSL_Math]]

Revision as of 19:38, 25 January 2007