SQRT()

SQRT()

Top  Previous  Next

 

The SQRT() function returns the square root of a value.

 

 

Format

 

SQRT(expr)

 

where

 

exprevaluates to a number or a numeric array.

 

 

The SQRT() function returns the square root of expr.

 

If expr is a numeric array (a dynamic array where all elements are numeric), the SQRT() function operates on each element in turn and returns a numeric array with the same structure as expr.

 

A negative value of expr will cause a run time error.

 

 

Example

 

N = SQRT(A)

 

This statement finds the square root of A and assigns this to N.