# double round

double round(double __x)

The round() function rounds __x to the nearest integer, but rounds halfway cases away from zero (instead of to the nearest even integer). Overflow is impossible.

Remember:

The rounded value. If __x is an integral or infinite, __x itself is returned. If __x is NaN, then NaN is returned.