Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbNumberZero

Set the value of a number to zero.

Declaration

CTDBRET ctdbNumberZero(pCTNUMBER pNumber)

Description

ctdbNumberZero() sets the value of a number to zero.

  • pNumber [in] pointer to a number.

Returns

ctdbNumberZero() returns CTDBRET_OK on success, or FairCom DB API error on failure. Use ctdbIsNumberZero() to check if a number is zero.

The possible error associated with ctdbNumberZero() is:

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

See also

ctdbIsNumberZero(), ctdbNumberAbs(), ctdbNumberCmp(), ctdbNumberNegate(), ctdbNumberRound(), ctdbNumberCopy(), ctdbNumberGetDecimal()

TOCIndex