Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbCurrencyToFloat

Convert a CTCURRENCY value to a float value.

Declaration

CTDBRET ctdbCurrencyToFloat(CTCURRENCY currency, pCTFLOAT pValue)

Description

ctdbCurrencyToFloat() converts a CTCURRENCY (8 bytes signed integer) value to a float value. Use ctdbFloatToCurrency() to convert from a float to a CTCURRENCY value.

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

Returns

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

The possible error associated with ctdbCurrencyToFloat() is:

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

See also

ctdbFloatToCurrency()

TOCIndex