Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbLongToMoney

Convert a LONG value to a CTMONEY.

Declaration

CTDBRET ctdbLongToMoney(CTSIGNED value, pCTMONEY pMoney)

Description

ctdbLongToMoney() converts a LONG value to a CTMONEY value. The long value is multiplied by 100 before the conversion. Use ctdbMoneyToLong() to convert from a LONG to CTMONEY.

  • value [in] the CTSIGNED LONG value.
  • pMoney [out] the CTMONEY value.

Returns

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

The possible error associated with ctdbLongToMoney() is:

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

See also

ctdbMoneyToLong()

TOCIndex