Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbNumberAbs

Return the absolute value of a CTNUMBER type value.

Declaration

CTDBRET ctdbNumberAbs(pCTNUMBER pSource, pCTNUMBER pResult)

Description

ctdbNumberAbs() returns the absolute value of a CTNUMBER type value.

  • pSource [in] the value to be converted to absolute.
  • pResult [out] the absolute value.

Returns

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

The possible errors associated with ctdbNumberAbs() are:

  • CTDBRET_NULARG (4007): Null argument not valid in any operand

See also

ctdbNumberAdd(), ctdbNumberSub(), ctdbNumberMul(), ctdbNumberDiv(), ctdbNumberCmp(), ctdbNumberNegate(), ctdbNumberZero(), ctdbNumberRound(), ctdbNumberCopy(), ctdbNumberGetDecimal()

TOCIndex