floor

Computes the largest integer less than or equal to x, returning the result as type T.

  1. T floor(T x)
    version(!LDC && GNU)
    T
    floor
    (
    T
    )
    (
    in T x
    )
    if (
    isFloatingPoint!T
    )
  2. T floor(T x)
  3. T floor(T x)