Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbFloatToMoney

Converts a floating point value to a CTMONEY type

Declaration

CTDBRET ctdbFloatToMoney(CTFLOAT value, pCTMONEY pMoney)

Description

ctdbFloatToMoney() converts from a floating point number to CTMONEY. Use ctdbMoneyToFloat() to convert a CTMONEY value to a floating point number.

  • value [in] the floating point value to convert.
  • pMoney [out] the pointer to the CTMONEY value.

Returns

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

The possible errors associated with ctdbFloatToMoney() are:

  • CTDBRET_NULARG (4007): Null argument not valid in pStr
  • CTDBRET_OVERFLOW (4038): Operation caused overflow

See also

ctdbMoneyToFloat()

TOCIndex