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.
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)