FP_SUB

Subtract floating-point numbers

WSupported on Windows
USupported on Unix
VSupported on OpenVMS

 

xcall FP_SUB(result, operand1, operand2)

result

Returned with the result of subtracting operand2 from operand1. (a8)

operand1

The operand to subtract from. (a8)

operand2

The operand to subtract. (a8)

The FP_SUB subroutine subtracts one floating-point number from another.

The following equation is performed:

result = operand1operand2

Result, operand1, and operand2 are native floating-point numbers represented as a8 variables.

See Sample program.