Difference between revisions of "LlSqrt"

From Second Life Wiki
Jump to navigation Jump to search
Line 31: Line 31:
[[Category:LSL_Functions]]
[[Category:LSL_Functions]]
[[Category:LSL_Math]]
[[Category:LSL_Math]]
[[Category:LSL_Math_Error]]
[[Category:LSL_Error/Math]]

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