nearbyint

fnreal nearbyint(real x) @safe pure nothrow @nogc

Rounds x to the nearest integer value, using the current rounding mode.

Unlike the rint functions, nearbyint does not raise the FE_INEXACT exception.