ctdbMoneyToCurrency
Convert a CTMONEY value to a CTCURRENCY value.
Declaration
CTDBRET ctdbMoneyToCurrency(CTMONEY money, pCTCURRENCY pCurrency)
Description
ctdbMoneyToCurrency() converts a CTMONEY value to a CTCURRENCY value. A currency value is an 8 bytes integer. Use ctdbCurrencyToMoney() to convert from a CTCURRENCY value to a CTMONEY value.
Returns
ctdbMoneyToCurrency() returns CTDBRET_OK on success, or FairCom DB API error on failure.
The possible error associated with ctdbMoneyToCurrency() is:
See also
ctdbCurrencyToMoney()