nearbyint

Rounds the floating-point value x to the nearest integer value in the current rounding mode.

  1. T nearbyint(T x)
  2. T nearbyint(T x)
    version(!LDC && !GNU)
    static if(__VERSION__ >= 2082)
    T
    nearbyint
    (
    T
    )
    (
    in T x
    )
    if (
    isFloatingPoint!T
    )
  3. T nearbyint(T x)