Concept Framework 2.0 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: Fri Jan 21 18:06:19 2011 GMT | (c)2011 RadGs Software |