ctdbFloatToCurrency
Convert a float value to a CTCURRENCY value.
Declaration
CTDBRET ctdbFloatToCurrency(CTFLOAT value, pCTCURRENCY pCurrency)
Description
ctdbFloatToCurrency() converts a floating point value to a CTCURRENCY (8 bytes signed integer) value. Use ctdbCurrencyToFloat() to convert from a float to a CTCURRENCY value.
Returns
ctdbFloatToCurrency() returns CTDBRET_OK on success, or FairCom DB API error on failure.
The possible error associated with ctdbFloatToCurrency() is:
See also
ctdbCurrencyToFloat()