Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlDivNumeric

Divides two numeric values.

Declaration

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

Description

ctsqlDivNumeric() divides two numeric values.

  • num1 the value to be divided (divisor).
  • num2 the value to divide (dividend).
  • res the result of the division operation.

Return

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

See Also

ctsqlAddNumeric ctsqlSubNumeric ctsqlMulNumeric

TOCIndex