Difference between revisions of "LlSqrt"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{ | {{LSL_Function | ||
|func=llSqrt | |func=llSqrt|sort=Sqrt | ||
|func_id=4 | |func_id=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 (val < 0.0) | |func_footnote=Triggers a [[LSL_Math_Error|Math Error]] for imaginary results (val < 0.0) | ||
|p1_type=float | |p1_type=float|p1_name=val|p1_desc=positive number (val >= 0.0) | ||
|p1_name=val | |||
|p1_desc=positive number (val >= 0.0) | |||
|return_type=float | |return_type=float | ||
|return_text=that is the square root of val. | |return_text=that is the square root of val. | ||
|spec | |spec | ||
|caveats=* Crashes the script if passed a negative number. | |caveats=* Crashes the script if passed a negative number. | ||
|constants | |||
|examples | |examples | ||
|helpers | |helpers | ||
| | |also_functions | ||
|also_events | |||
|also_articles | |||
|also_tests | |||
|notes | |notes | ||
|permission | |||
|negative_index | |||
|cat1=Math | |||
|cat2=Error/Math | |||
|cat3 | |||
|cat4 | |||
}} | }} | ||
Revision as of 01:11, 14 February 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llSqrt( float = 0.0)" style="border-bottom:1px dotted; cursor:help;">val );4 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float that is the square root of val.
• float | val | – | positive number (val >= 0.0) |
Triggers a Math Error for imaginary results (val < 0.0)