ctdbCurrencyToMoney
Convert a CTCURRENCY value to a CTMONEY value.
Declaration
CTDBRET ctdbCurrencyMoney(CTCURRENCY currency, pCTMONEY pMoney)
Description
ctdbCurrencyToMoney() converts a CTCURRENCY value to a CTMONEY value. A currency value is an 8 bytes integer. Use ctdbMoneyToCurrency() to convert from a CTMONEY value to a CTCURRENCY value.
Returns
ctdbCurrencyToMoney() returns CTDBRET_OK on success, or c-treeDB API error on failure.
The possible error associated with ctdbCurrencyToMoney() is:
See also
ctdbMoneyToCurrency()