ctdbBigIntToCurrency
Convert a big integer value to a CTCURRENCY value.
Declaration
CTDBRET ctdbBigIntToCurrency(CTBIGINT value, pCTCURRENCY pCurrency)
Description
ctdbBigIntToCurrency() converts a big integer (8 bytes signed integer) value to a CTCURRENCY (8 bytes signed integer) value. Use ctdbCurrencyToBigInt() to convert from a CTCURRENCY value to a big integer (CTBIGINT) value.
Returns
ctdbBigIntToCurrency() returns CTDBRET_OK on success, or c-treeDB API error on failure.
A possible error associated with ctdbBigIntToCurrency() is CTDBRET_NULARG since a Null argument is not valid in pCurrency.
See also
ctdbCurrencyToBigInt()