Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbNumberToCurrency

Convert a CTNUMBER value to a currency value.

Declaration

CTDBRET ctdbNumberToCurrency(pCTNUMBER pNumber, pCTCURRENCY pValue)

Description

ctdbNumberToCurrency() converts a CTNUMBER value to a CTCURRENCY value. Use ctdbCurrencyToNumber() to convert from a CTCURRENCY to CTNUMBER. Use ctdbNumberToMoney() to convert CTNUMBER to a CTMONEY.

  • pNumber [in] pointer to the CTNUMBER to be converted.
  • pValue [out] pointer the output CTCURRENCY value.

Returns

ctdbNumberToCurrency() returns CTDBRET_OK on success, or FairCom DB API error on failure.

The possible error associated with ctdbNumberToCurrency() is:

  • CTDBRET_NULARG (4007): Null argument not valid in pValue

See also

ctdbCurrencyToNumber(), ctdbNumberToLong(), ctdbNumberToMoney()

TOCIndex