Sqrt Function

Action

Returns the square root of a number.

Syntax

nNewNum = Sqrt (nOrigNum)
Variable Description
nNewNum The returned square root. NUMBER.
nOrigNum The number whose square root to calculate. NUMBER.

Notes

Sqrt returns the square root of nOrigNum. An exception is raised if nOrigNum is less than zero.

Example

Print (Sqrt (4)) // prints: 2.000000
Print (Sqrt (10)) // prints: 3.162278