$sqrt

Returns the square root of X.

$sqrt(X)

Parameters

X—positive numeric constant, or a field (or indirect reference to a field), variable, function, or expression that evaluates to a positive numeric value.

Return Values

Square root of X

If an error occurs, $procerror contains a negative value that identifies the exact error.

Values of $procerror Commonly Returned Following $sqrt
Value  Error constant Meaning
-1204 <UPROCERR_NEGATIVE> Negative value not allowed.

Use

Allowed in all component types.

Using $sqrt

The following example computes the square root of 0.5.

vRoot = $sqrt(1/2)