Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlSubNumeric

Subtract two numeric values.

Declaration

CTSQLRET ctsqlSubNumeric(NUMERIC* num1, NUMERIC* num2, NUMERIC* res)

Description

ctsqlSubNumeric() subtracts two numeric values.

  • num1 the first operand to the subtraction.
  • num2 the second operand to the subtraction.
  • res the result of the subtraction operation.

Return

ctsqlSubNumeric() returns 0 on success, or -1 on failure.

See Also

ctsqlAddNumeric(), ctsqlMulNumeric(), ctsqlDivNumeric()

TOCIndex