round

Rounds a floating-point value x to the nearest integer, returning the result as type T.

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