Ceiling

https://arbital.com/p/mathematics_ceiling

by Nate Soares May 27 2016 updated May 27 2016


The ceiling of a real number x, denoted x or sometimes ceil(x), is the first Integer nx. For example, 3.72=4,4=4, and 3.72=3. In other words, the ceiling function rounds its input up to the nearest integer.

For the function that rounds its input down to the nearest integer, see [floor]. Ceiling and floor are not to be confused with [fix_towards_zero fix] and [ceilfix], which round towards and away from zero (respectively).

Formally, ceiling is a function of type RZ. The ceiling function can also be defined on complex numbers.


Comments

Alexei Andreev

The ceiling of a real number x, denoted lceilxrceil or sometimes operatornameceil(x), is the first integer ngex. For example, lceil3.72rceil\=4,lceil4rceil\=4, and lceil3.72rceil\=3. In other words, the ceiling function rounds its input up to the nearest integer\.

Smallest?