> For the complete documentation index, see [llms.txt](https://emacs-lisp.ivory.cafe/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://emacs-lisp.ivory.cafe/shu-zi/jing-que-du.md).

# 3.7 取整

函数ffloor、fceiling、fround和 ftruncate接受一个浮点参数并返回一个浮点结果，其值为附近的整数。 ffloor返回向下取整的整数；fceiling返回向上取整的整数； ftruncate, 返回向零方向取整的整数； fround，最接近的整数。

Function：ffloor float 此函数将float 向下舍入取整，并将该值作为浮点数返回。

Function：fceiling float 此函数将float 向上舍入取整，并将该值作为浮点数返回。

Function：ftruncate float 此函数将float 向零舍入取整，并将该值作为浮点数返回。

Function：fround float 此函数将float 舍入到最接近的整数值，并将该值作为浮点数返回。对两个整数之间等距的值，舍入到接近的偶数。
