Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbCurrencyToNumber

Convert a CTCURRENCY value to a CTNUMBER value.

Declaration

CTDBRET ctdbCurrencyToNumber(CTCURRENCY value, pCTNUMBER pNumber)

Description

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

  • value [in] the CTCURRENCY value.
  • pNumber [out] pointer to CTNUMBER.

Returns

ctdbCurrencyToNumber() returns CTDBRET_OK on success, or c-treeDB API error on failure.

The possible error associated with ctdbCurrencyToNumber() is:

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

See also

ctdbNumberToCurrency(), ctdbNumberToLong()

TOCIndex