Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlAddNumeric

Adds two numeric values.

Declaration

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

Description

ctsqlAddNumeric() adds two numeric values.

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

Return

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

See Also

ctsqlSubNumeric(), ctsqlMulNumeric(), ctsqlDivNumeric()

TOCIndex