TMBASIC
Documentation
Docs
GitHub
TMBASIC Documentation
►
Procedures: Math
Sqr
Procedure
Returns the square root of the given number
x
.
Declaration
function Sqr(x as Number) as Number
Parameters
x
as
Number
— Input number.
Return value
Number
— Square root.
Example
Code
print Sqr(9)
print Sqr(-1)
Output
3
NaN