Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbNumberCmp

Compare two CTNUMBER type values.

Declaration

NINT ctdbNumberCmp(pCTNUMBER num1, pCTNUMBER num2)

Description

ctdbNumberCmp() compares two CTNUMBER values.

  • num1 [IN], num2 [IN] pointers to the values to be compared.

Returns

ctdbNumberCmp() returns a negative value if num1 < num2, positive value if num1 > num2, and zero if num1 == num2

See also

ctdbNumberAdd(), ctdbNumberSub(), ctdbNumberMul(), ctdbNumberDiv(), ctdbNumberAbs(), ctdbNumberNegate(), ctdbNumberZero(), ctdbNumberRound(), ctdbNumberCopy(), ctdbNumberGetDecimal()

TOCIndex