Atom

math.floor()

Rounds toward negative infinity.

Signature

math.floor(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.floor(-1.2) == -2.0)