Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbCurrencyToBigInt

Convert a CTCURRENCY value to a big integer value.

Declaration

CTDBRET ctdbCurrencyToBigInt(CTCURRENCY currency, pCTBIGIND pValue)

Description

ctdbCurrencyToBigInt() converts a CTCURRENCY (8 bytes signed integer) value to a big integer (8 bytes signed integer) value. Use ctdbBigIntToCurrency() to convert from a big integer (CTBIGINT) value to a CTCURRENCY value. Use ctdbCurrencyToLong() to convert from CTCURRENCY to a CTSIGNED (4 bytes signed integer).

  • currency [in] the CTCURRENCY value (8 bytes integer).
  • pValue [out] the CTBIGINT value (8 bytes integer).

Returns

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

The possible error associated with ctdbCurrencyToBigInt() is:

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

See also

ctdbBigIntToCurrency()

TOCIndex