lround

Returns the value of x rounded away from zero.

long
lround
(
D
)
(
auto const ref D x
)

Throws

InvalidOperationExceptionx is NaN or ±∞
OverflowExceptionresult is too big to be represented

Special values

xlround(x)
NaN0
-∞long.min
+∞long.max

Meta