floor

Returns the value of x rounded downward to the previous integer (toward negative infinity). This operation is silent, doesn't throw any exception.

More...
D
floor
(
D
)
(
auto const ref D x
)

Detailed Description

Special values

xfloor(x)
NaNNaN
±0.0±0.0
±∞±∞

Examples

assert (floor(decimal32("123.456")) == 123);
assert (floor(decimal32("-123.456")) == -124);

Meta