standard.C.math.sqrt

sqrt is available since version 1.0.

Prototype:

number sqrt(number n)

Parameters

n
[in] Nonnegative number

Description:

The sqrt function returns the square-root of x. If x is negative, sqrt returns an indefinite, by default.

Return value:

The sqrt function returns the square-root of x. If x is negative, sqrt returns an indefinite, by default.

Example
import standard.C.math

class Main {
     function Main() {
          var question = 45.35;
          var answer;

          answer = sqrt(question);
          if(question < 0)
               echo "Error !";
          else
               echo "The square root of " + question + " is " + answer;
     }
} 
 

Results 
The square root of 45.350000000000001 is 6.7342408629332526