Topics

float x = -3.4;
cout << floor(x) << " " << trunc(x) << endl;
 
// Output: -4 -3

For positive numbers, they both work the same.