📜  c++ 向下取整 - C++ 代码示例

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

代码示例2
#include 
#include 

using namespace std;

int main()
{
    double num1 = 4.8;
      double num2 = 4.3;
      cout << ceil(num1) << endl; // --> 5
      cout << ceil(num2) << endl; // --> 5
}