printf("%.1f, %.2f", 1.45, 1.445);
output
1.4, 1.45
1.45 is sliced but 1.445 is rounded.
I found this, Why printf round floating point numbers? Which explained the specification recommands to round the float.
Edit: I tested it with VS2017 (in a C++ project) and Dev-C.