rndtonl

Returns the value of x rounded using the specified rounding _mode. If no rounding _mode is specified the default context rounding _mode is used instead. If the value doesn't fit in a long data type OverflowException is thrown.

  1. D rndtonl(D x, RoundingMode mode)
  2. D rndtonl(D x)
    @safe
    D
    rndtonl
    (
    D
    )
    (
    auto const ref D x
    )

Throws

InvalidOperationExceptionx is NaN
OverflowExceptionresult does not fit in a long data type
InexactExceptionthe result is inexact

Special values

xrndtonl(x)
NaNNaN
±∞±∞
±0.0±0.0

Meta