CitectVBA Programming Reference > CitectVBA Function Reference > Math/Trigonometry Functions > Sqrt

Sqrt

Calculates the square root of a number. Sqrt expects the argument (Num) to be a valid numeric value greater than or equal to 0.

Syntax

Sqrt(Num)

Num:

An Integer or expression representing a valid numeric value.

Return Value

Returns the square root value of the (Num) provided in the argument.

Related Functions

Abs| Fix| Int| Sgn

Example

Variable=Sqrt(4);
! Sets Variable to 2.