Ron answer, rint() nearbyint(), , round(), , , , . ISO ++ 2011 , 26.8 C library [c.math] C. ISO ISO 1999 round() :
7.12.9.6 [...] , , .
, round(), 4.3.1 IEEE 754 (2008) roundTiesToAway, , , FE_TONEAREST IEEE-754 (2008) roundTiesToEven, , . FE_TONEAREST, - , fesetround().
" " : 0.5 ( ) (1) round(), (0), nearbyint() rint().