FP_SQRT

Get the square root of a floating-point number

WSupported on Windows
USupported on Unix
VSupported on OpenVMS

 

xcall FP_SQRT(result, operand)

result

Returned with the result of taking the square root of operand. (a8)

operand

An operand whose square root will be returned. (a8)

The FP_SQRT subroutine returns the square root of a floating-point number.

The following equation is performed:

result = sqrt(operand)

Result and operand are native floating-point numbers represented as a8 variables.

See Sample program.