Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlRoundNumeric

Round a numeric value given a precision and scale.

Declaration

CTSQLRET ctsqlRoundNumeric(NUMERIC* num, INTEGER precision, INTEGER scale)

Description

ctsqlRoundNumeric() rounds a numeric value given a precision and scale.

  • num the numeric value to be rounded.
  • precision the rounding precision.
  • scale the rounding scale.

Return

ctsqlRoundNumeric() returns CTSQLRET_OK on success.

TOCIndex