Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

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.

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

Returns

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

The possible error associated with ctdbFloatToCurrency() is:

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

See also

ctdbCurrencyToFloat()

TOCIndex