The OpenD Programming Language

rint

Rounds x to the nearest integer value, using the current rounding mode. If the return value is not equal to x, the FE_INEXACT exception is raised. nearbyint performs the same operation, but does not set the FE_INEXACT exception.

  1. alias rint = llvm_rint!float
  2. alias rint = llvm_rint!double
    import core.math;
    version(LDC)
    @nogc nothrow @safe pure
    alias rint = llvm_rint!double
  3. alias rint = llvm_rint!real

Meta