Floor and Ceiling Functions

Lesson · Intermediate

Algebra

Floor Function

The floor of a real number x, written

⌊x⌋\lfloor x\rfloor

is the greatest integer less than or equal to x.

Equivalently,

⌊x⌋≤x<⌊x⌋+1\boxed{\lfloor x\rfloor\le x<\lfloor x\rfloor+1}

For example,

⌊4.7⌋=4\lfloor4.7\rfloor=4
⌊3⌋=3\lfloor3\rfloor=3

and

⌊−2.3⌋=−3\lfloor-2.3\rfloor=-3
Graph of the floor function y equals floor of x

Ceiling Function

The ceiling of a real number x, written

⌈x⌉\lceil x\rceil

is the smallest integer greater than or equal to x.

Equivalently,

⌈x⌉−1<x≤⌈x⌉\boxed{\lceil x\rceil-1<x\le\lceil x\rceil}

For example,

⌈4.2⌉=5\lceil4.2\rceil=5
⌈3⌉=3\lceil3\rceil=3

and

⌈−2.3⌉=−2\lceil-2.3\rceil=-2
Graph of the ceiling function y equals ceiling of x