floor(dp or numeric) largest integer not greater than argument
postgres=# -- floor(dp or numeric) largest integer not greater than argument postgres=# postgres=# select floor(-42.8); floor ------- -43 (1 row) postgres=# postgres=#