4.3.42 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 c-treeDB C API error on failure.
The possible errors associated with ctdbCurrencyDiv are:
See also
ctdbCurrencyAdd, ctdbCurrencySub, ctdbCurrencyMul
|
FairCom Corporation www.faircom.com |