Concept Framework 2.2 documentation | Contents | Index |
Name | Version | Deprecated |
sqrt | version 1.0 | no |
number sqrt(number n) |
n | [in] Nonnegative number |
The sqrt function returns the square-root of x. If x is negative, sqrt returns an indefinite, by default. |
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 |
Documented by Simona Gabriela Plesuvu, generation time: Sun Jan 27 18:15:15 2013 GMT | (c)2013 Devronium Applications |