Floor, Ceiling, and Round

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Move the sliders to plot the cubic equation , then pick one of the three functions.


Floor, or the greatest integer function, gives the greatest integer less than or equal to a given value. Some examples: , , , , and .

Round, or the nearest integer function, gives the nearest integer. For an integer and a half, rounding goes to the nearest even number. Some examples: , , , , and .

Ceiling, or the least integer function, gives the least integer greater than or equal to a given value. Some examples: , , , , and .


Contributed by: Ed Pegg Jr (March 2011)
Open content licensed under CC BY-NC-SA



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.