SYMPTOM:
Users receive an error message when attempting to use the Round2 function against a DB2 UDB Warehouse. Consider the following metric definition that uses the Round2 function which will be performed against a DB2 UDB warehouse:
Round2 Metric
Level: Report
Condition: Nothing
Transformation: Nothing

However, when using this metric on a report calculated at any level, users receive the following error message:

QueryEngine encountered error: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. No function or procedure was found with the specified name (ROUND) and compatible arguments.
CAUSE:
Notice in the SQL below (from the report above) that the precision of the Round2 Metric has been changed from '2' to '2.0':

select a11.EMP_ID EMP_ID, max(a12.EMP_LAST_NAME) EMP_LAST_NAME, max(a12.EMP_FIRST_NAME) EMP_FIRST_NAME, ROUND(sum(a11.TOT_DOLLAR_SALES), 2.0) WJXBFS1 from ITEM_EMP_SLS a11 join LU_EMPLOYEE a12 on (a11.EMP_ID = a12.EMP_ID) group by a11.EMP_ID

Re-execute the report and the correct results will be displayed:
