Lingo Dictionary > S > sqrt() |
![]() ![]() ![]() |
sqrt()
Syntax
sqrt(
number
)
the sqrt of
number
Description
Math function; returns the square root of the number specified by number,
which is either a floating-point number or an integer rounded to the nearest integer.
The value must be a decimal number greater than 0. Negative values return 0.
Example
This statement displays the square root of 3.0 in the Message window:
put sqrt(3.0) -- 1.7321
Example
This statement displays the square root of 3 in the Message window:
put sqrt(3) -- 2
See also
![]() ![]() ![]() |