Next: Bitwise Operations, Previous: Arithmetic Operations, Up: Numbers

The functions `ffloor`

, `fceiling`

, `fround`

, and
`ftruncate`

take a floating point argument and return a floating
point result whose value is a nearby integer. `ffloor`

returns the
nearest integer below; `fceiling`

, the nearest integer above;
`ftruncate`

, the nearest integer in the direction towards zero;
`fround`

, the nearest integer.

— Function: **ffloor**` float`

This function rounds

floatto the next lower integral value, and returns that value as a floating point number.

— Function: **fceiling**` float`

This function rounds

floatto the next higher integral value, and returns that value as a floating point number.