📜  cpp 中的 floor 和 ceil - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.160000             🧑  作者: Mango

代码示例1
floor(x) : Returns the largest integer that is smaller than or equal to x (i.e : rounds downs the nearest integer).
 ceil(x) : Returns the smallest integer that is greater than or equal to x (i.e : rounds up the nearest integer).