ceil(x): Returns the smallest whole integer not less than argument (rounds up) : ceil « Math Functions « PostgreSQL






ceil(x): Returns the smallest whole integer not less than argument (rounds up)


postgres=# -- ceil(x): Returns the smallest whole integer not less than argument (rounds up)
postgres=# SELECT ceil(1.0);
 ceil
------
    1
(1 row)

postgres=#
           
       








Related examples in the same category

1.ceil(dp or numeric) smallest integer not less than argument
2.ceiling(dp or numeric) smallest integer not less than argument (alias for ceil)
3.ceil(1.1), ceil(1.5)