ctdbMoneyDiv
Divide one money value by another money value. pResult = left / right.
Declaration
CTDBRET ctdbMoneyDiv(CTMONEY left, CTMONEY right, pCTMONEY pResult)
Description
ctdbMoneyDiv() divide one money value by another money value. pResult = left / right. Do not make regular division with CTMONEY values. You may user regular division between a CTMONEY value and a numeric value (int, COUNT, FLOAT, etc.).
Returns
ctdbMoneyDiv() returns CTDBRET_OK on success, or FairCom DB API error on failure.
The possible errors associated with ctdbMoneyDiv() are:
See also
ctdbMoneyAdd(), ctdbMoneySub(), ctdbMoneyMul()