Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbCurrencyCmp

Compare two CTCURRENCY type values.

Declaration

NINT ctdbCurrencyCmp(CTCURRENCY left, CTCURRENCY right)

Description

ctdbCurrencyCmp() compares two CTCURRENCY values.

  • left [in] the first value to be compared.
  • right [in] the second value to be compared.

Returns

ctdbCurrencyCmp() returns a negative value if left < right, positive value if left > right, and zero if left == right

See also

ctdbCurrencyAdd(), ctdbCurrencySub(), ctdbCurrencyMul(), ctdbCurrencyDiv(), ctdbCurrencyAbs(), ctdbCurrencyRound()

TOCIndex