杂七杂八的小点

STL的博客 / 2023-07-27 / 原文

1

#include<cmath>

round(x) //将 x 四舍五入
floor(x) //将 x 向下取整
ceil(x)  //将 x 向上取整