ctdbCurrencyDiv
Divide a currency value by another currency value. pResult = left / right.
Declaration
CTDBRET ctdbCurrencyDiv(CTCURRENCY left, CTCURRENCY right,
pCTCURRENCY pResult)
Description
ctdbCurrencyDiv() divides the left currency value by the right currency value (e.g., pResult = left / right). Do not make regular division with CTCURRENCY values. Use regular division between a CTCURRENCY value and a numeric value (int, COUNT, FLOAT, etc.).
Returns
ctdbCurrencyDiv() returns CTDBRET_OK on success, or FairCom DB API error on failure.
The possible errors associated with ctdbCurrencyDiv() are:
See also
ctdbCurrencyAdd(), ctdbCurrencySub(), ctdbCurrencyMul()