Concept Framework 1.0 documentation Contents | Index

standard.C.math.sqrt

Name Version Deprecated
sqrt version 1.0 no

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.

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

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

Documented by Simona Gabriela Plesuvu, generation time: Thu Oct 15 20:02:03 2009 GMT(c)2009 RadGs Software