Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbNumberMul

Multiply two CTNUMBER values.

Declaration

CTDBRET ctdbNumberMul(pCTNUMBER pLeft, pCTNUMBER pRight,

pCTNUMBER pResult)

Description

ctdbNumberMul multiplies two Number values. pResult = pLeft * pRight. Do not use regular multiplication with CTNUMBER values.

  • pLeft [in] the first value to be multiplied.
  • pRight [in] the second value to be multiplied.
  • pResult [out] the result of the multiplication operation.

Returns

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

The possible errors associated with ctdbNumberMul() are:

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

See also

ctdbNumberAdd(), ctdbNumberSub(), ctdbNumberDiv()

TOCIndex