#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double num1 = 4.8;
double num2 = 4.3;
cout << floor(num1) << endl; // --> 4
cout << floor(num2) << endl; // --> 4
}
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double num1 = 4.8;
double num2 = 4.3;
cout << round(num1) << endl; // --> 5
cout << round(num2) << endl; // --> 4
}
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double num1 = 4.8;
double num2 = 4.3;
cout << ceil(num1) << endl; // --> 5
cout << ceil(num2) << endl; // --> 5
}
#include <iostream>
#include <cmath>
using namespace std;
int main() {
// display integral value closest to 15.5
cout << round(15.5);
return 0;
}
// Output: 16