ctdbNumberRound
Round a number to a scale.
Declaration
CTDBRET ctdbNumberRound(pCTNUMBER num, NINT scale)
Description
ctdbNumberRound() rounds a number to a certain number of decimal digits.
Returns
ctdbNumberRound() returns CTDBRET_OK on success, or c-treeDB API error on failure.
The possible errors associated with ctdbNumberRound() are:
See also
ctdbNumberAdd(), ctdbNumberSub(), ctdbNumberMul(), ctdbNumberDiv(), ctdbNumberAbs(), ctdbNumberCmp(), ctdbNumberZero(), ctdbNumberCopy(), ctdbNumberGetDecimal(), ctdbNumberCopy(), ctdbNumberGetDecimal()