Atom

math.ceil()

Rounds toward positive infinity.

Signature

math.ceil(x)

Parameters

One number.

Returns

Integral-valued f64 for finite input.

Behavior

Uses the C math operation.

Errors

Requires a number.

Example

Atom
use math
assert(math.ceil(-1.2) == -1.0)