Returns the square root of a number.
nNewNum = Sqrt (nOrigNum)
Variable | Description |
---|---|
nNewNum | The returned square root. NUMBER. |
nOrigNum | The number whose square root to calculate. NUMBER. |
Sqrt returns the square root of nOrigNum. An exception is raised if nOrigNum is less than zero.
Print (Sqrt (4)) // prints: 2.000000 Print (Sqrt (10)) // prints: 3.162278