round x gives the nearest integer to x.

round x

write round -1.5

This function rounds up halves. For example 0.5 is rounded up to 1, and -0.5 is rounded up to 0.

To round down or round up, see floor and ceil.

floor

ceil