F.9.6.3 The nearbyint functions
The nearbyint functions use IEC 60559 rounding according to the current rounding direction. They do not raise the “inexact” floating-point exception if the result differs in value from the argument.
nearbyint((+-)0) returns (+-)0 (for all rounding directions).
nearbyint((+-)(inf)) returns (+-)(inf) (for all rounding directions).