SET search_path = db2,pg_catalog,public;

-- INTEGER()/INT()
SELECT INTEGER(1.00) FROM SYSIBM.SYSDUMMY1;
SELECT INTEGER(1.50) FROM SYSIBM.SYSDUMMY1;
SELECT INTEGER(1.99) FROM SYSIBM.SYSDUMMY1;
SELECT INTEGER(2.00) FROM SYSIBM.SYSDUMMY1;
SELECT INTEGER(1.99e0) FROM SYSIBM.SYSDUMMY1;
SELECT INTEGER(2.00e0) FROM SYSIBM.SYSDUMMY1;
SELECT INTEGER(2.00) FROM SYSIBM.SYSDUMMY1;
SELECT INTEGER(1) FROM SYSIBM.SYSDUMMY1;
SELECT DOUBLE(1.00) FROM SYSIBM.SYSDUMMY1;
SELECT CHAR(1.00) FROM SYSIBM.SYSDUMMY1;

-- ROUND()
SELECT ROUND(873.726, 2) FROM SYSIBM.SYSDUMMY1;
SELECT ROUND(873.726, 1) FROM SYSIBM.SYSDUMMY1;
SELECT ROUND(873.726, 0) FROM SYSIBM.SYSDUMMY1;
SELECT ROUND(873.726, -1) FROM SYSIBM.SYSDUMMY1;
SELECT ROUND(873.726, -2) FROM SYSIBM.SYSDUMMY1;
SELECT ROUND(873.726, -3) FROM SYSIBM.SYSDUMMY1;
SELECT ROUND(873.726, -4) FROM SYSIBM.SYSDUMMY1;
