Difference between revisions of "LlSqrt"

From Second Life Wiki
Jump to navigation Jump to search
Line 7: Line 7:
|p1_type=float
|p1_type=float
|p1_name=val
|p1_name=val
|p1_desc=positive number
|p1_desc=positive number (val >= 0.0)
|p2_type|p2_name|p2_desc
|p2_type|p2_name|p2_desc
|p3_type|p3_name|p3_desc
|p3_type|p3_name|p3_desc

Revision as of 18:38, 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 );
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)

Caveats

  • Crashes the script if passed a negative number.

Examples

Deep Notes

Signature

function float llSqrt( float val );