Algosim documentation: ⌈⌉

⌈⌉ (ceil)

Rounds to the nearest integer in the direction of +∞.

Syntax

Description

If x is a real number, then ⌈x⌉ is the nearest integer that is greater than x.

Notes

The circumfix operator ⌈⌉ is mapped to the ceil function.

Examples

⌈π⌉
4
⌈e⌉
3
⌈−π⌉
−3
⌈−e⌉
−2

See also