Syntax

float llSqrt( float val );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

float val
positive number (val >= 0.0)

For imaginary results (val < 0.0), a Math Error is triggered under LSO , or 'NaN' (Not A Number) is returned under Mono

Return value

Returns a float that is the square root of val.

Caveats

Examples

default
{
  state_entry()
  {
    float num1 = llFrand(100.0);

    llOwnerSay("The square root of " + (string)num1 + " is " + (string)llSqrt(num1));
  }
}

Notes

See also

Functions