Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbCurrencyRound

Round a currency value to a given number of decimal places.

Declaration

CTDBRET ctdbCurrencyRound(pCTCURRENCY value, NINT scale)

Description

ctdbCurrencyRound() rounds a currency value to a given number of decimal places.

  • value [in/out] the value to be converted to absolute.
  • scale [in] the number of decimal digits.

Returns

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

The possible error associated with ctdbCurrencyMu()l is:

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

See also

ctdbCurrencyAdd(), ctdbCurrencySub(), ctdbCurrencyMul(), ctdbCurrencyDiv(), ctdbCurrencyCmp(), ctdbCurrencyAbs()

TOCIndex