Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbMoneyToFloat

Convert a CTMONEY value to a floating point number

Declaration

CTDBRET ctdbMoneyToFloat(CTMONEY money, pCTFLOAT pValue)

Description

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

  • money [in] the CTMONEY type value.
  • pValue [out] the floating point value.

Returns

ctdbMoneyToFloat() returns CTDBRET_OK on success, or FairCom DB API error on failure.

The possible error associated with ctdbMoneyToFloat() is:

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

See also

ctdbFloatToMoney()

TOCIndex