The greatest integer function, also called step function, is a piecewise function whose graph looks like the steps of a staircase. The greatest integer function is denoted by f(x) = [x] and is defined as the greatest integer less or equal to x.
[2.5] is the greatest integer less or equal to 2.5.
Notice that the number we are looking for must meet two conditions.
Which number can you think of that is less than 2.5 and is an integer? That number is 2!
[2.5] = 2
[-2.5] is the greatest integer less or equal to -2.5.
Again, the number we are looking for must meet the following two conditions.
[-2.5] is not equal to -2. Remember that we are looking for a number smaller than -2.5. The number that is smaller than -2.5 is -3, so [-2.5]= -3
 is the greatest integer less or equal to 4.
We are looking for a number less or equal to 4. Now, we need to pay more attention to the part or equal to 4. Since 4 is equal to 4,  = 4
[0.5] is the greatest integer less or equal to 0.5.
Again, focus on the word less and try to ignore as much as possible the word greatest. Which integer is less than 0.5? Since it is 0, [0.5] = 0.
When graphing the greatest integer function, a table of values can be a great help.Choose values for x in the interval 0 ≤ x ≤ 1 and make a table with values of x and f(x)
The graph for these two intervals is shown below. The only thing that is not included is  = 1.
Notice that the right endpoint of each step is an open circle. For points in the interval [0, 1], even if the value is 0.9999999, [0.9999999] = 0 since we are looking for the integer that is less than 0.9999999. Similarly, for points in the interval [-1, 0], even if the value is -0.00001, [-0.00001] = -1 since we are looking for the integer that is less than -0.00001. When x finally reaches 0,  = 0
Below is the graph for the greatest integer function in the interval [-5,6]