Difference between revisions of "LlSqrt"

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 (val < 0.0)
|func_footnote=Triggers a [[Category:LSL_Math_Error|Math Error]] for imaginary results (val < 0.0)
|p1_type=float
|p1_type=float
|p1_name=val
|p1_name=val

Revision as of 19:39, 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 llSqrt( float = 0.0)" style="border-bottom:1px dotted; cursor:help;">val );

Returns a float that is the square root of val.

• float val positive number (val >= 0.0)

Triggers a for imaginary results (val < 0.0)

Caveats

  • Crashes the script if passed a negative number.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function float llSqrt( float val );