Advertisement

Ceiling function calculator

Enter a real number to apply the ceil function. This rounds to an integer with a fixed direction.

Calculator

Ceil
-2

Advertisement

How this calculator works

Choose the smallest integer that is greater than or equal to the input. Ceiling moves toward positive infinity, including for negative inputs. An input that is already an integer stays unchanged.

Formula

ceil(x) = the least integer n satisfying n >= x.

Worked example

ceil(2.3) = 3 and ceil(-2.3) = -2.

Advertisement

Frequently asked questions

Does this round to the nearest integer?

No. The direction is fixed even when the fractional part is very small.

What happens to an exact integer?

It stays unchanged, including zero and negative integers.

Can I use a measured quantity?

Yes, but the numeric result is in the unit you entered. For complete packages or items, choose the rounding direction that fits your problem.

Sources

Advertisement