U
user923005
Let me also point out that such rounding is rarely needed. Most of
the time maintaining the original alleged precision and rounding
only the output, via printf, is needed.
I would go one step further:
It's better than rounding the original data.
But sometimes people want to do it anyway.