ceil

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

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

Detailed Description

Special values

xceil(x)
NaNNaN
±0.0±0.0
±∞±∞

Examples

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

Meta