Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbNumberGetDecimal

Retrieve the number of digits before and after the decimal point.

Declaration

CTDBRET ctdbNumberGetDecimal(pCTNUMBER data, pNINT digit_before,

pNINT digit_after)

Description

ctdbNumberGetDecimal() retrieves the number of digits before and after the decimal point.

  • data [in] pointer to number.
  • digit_before [out] the number of digits before the decimal place.
  • digit_after [out] the number of digits after the decimal place.

Returns

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

The possible errors associated with ctdbNumberGetDecimal() are:

  • CTDBRET_NULARG (4007): Null argument not valid in any operand
  • CTDBRET_INVNUMBER (4060): Number value invalid (out of bounds)

See also

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

TOCIndex