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)
    D
    rndtonl
    (
    D
    )
    (
    auto const ref D x
    ,)
  2. D rndtonl(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