Topics
float x = -3.4;
cout << floor(x) << " " << trunc(x) << endl;
// Output: -4 -3
For positive numbers, they both work the same.
Did the war forge the spear that remained? No. All it did was identify the spear that wouldn't break
Topics
float x = -3.4;
cout << floor(x) << " " << trunc(x) << endl;
// Output: -4 -3
For positive numbers, they both work the same.