trunc

Returns the value of x rounded up or down, depending on sign (toward zero). This operation is silent, doesn't throw any exception.

More...
@safe pure nothrow @nogc
D
trunc
(
D
)
(
auto const ref D x
)

Detailed Description

Special values

xtrunc(x)
NaNNaN
±0.0±0.0
±∞±∞

Meta