Floor Function Graph Calculator

Study y equals floor of ax plus b, then shift. See steps and sample points. Export neat results and learn every transformation with confidence.

Calculator Inputs

Use the model y = floor(a·x + b) + c. The floor function returns the greatest integer less than or equal to its input.

Controls stretch, compression, and direction.
Moves jump locations left or right.
Moves the full graph upward or downward.
Beginning of the graph window.
Ending of the graph window.
Smaller steps give denser sampling.
Optional single x-value inspection.
Controls decimals shown in results.

Example Data Table

Example using y = floor(1.5x + 0.25) - 2 across selected x-values.

x 1.5x + 0.25 floor(1.5x + 0.25) y
-2.0-2.75-3-5
-1.2-1.55-2-4
-0.10.100-2
0.61.151-1
1.42.3520
2.13.4031

Formula Used

Primary model: y = floor(a·x + b) + c
Floor rule: floor(t) is the greatest integer less than or equal to t
Jump points: when a·x + b = k, so x = (k - b) / a for integer k
Typical step width: 1 / |a| when a ≠ 0

The parameter a changes the horizontal size of each step and reverses direction when negative. The parameter b shifts where jumps occur. The parameter c shifts every output value vertically by the same amount.

When a = 0, the graph becomes constant because the expression inside the floor function no longer depends on x.

How to Use This Calculator

  1. Enter values for a, b, and c.
  2. Choose the graph window with x start and x end.
  3. Set a plot step. Smaller values create more sample points.
  4. Add an optional highlight x-value for a single-point inspection.
  5. Select display precision for neat numeric output.
  6. Press Graph Floor Function to show the result above the form.
  7. Review the graph, jump locations, summary cards, and detailed table.
  8. Use the export buttons to save the table as CSV or the result panel as PDF.

Frequently Asked Questions

1) What does the floor function do?

It maps any real number to the greatest integer less than or equal to that number. For example, floor(3.9) is 3, and floor(-1.2) is -2.

2) Why does the graph look like steps?

The output stays constant over intervals, then changes suddenly when the inside expression reaches the next integer. That makes horizontal segments separated by jumps.

3) What happens when a is negative?

A negative inside scale flips the graph horizontally in behavior. As x increases, the inside expression decreases, so the steps descend instead of rising.

4) What if a equals zero?

Then the inside expression becomes constant. The floor result is fixed, so the graph is a single horizontal line across the full x-window.

5) How do I find the width of each step?

For y = floor(a·x + b) + c with a not zero, the typical horizontal width is 1 divided by the absolute value of a. Larger |a| means narrower steps.

6) Why are some jump locations fractional?

Jumps happen when a·x + b equals an integer. Solving x = (k - b)/a often produces fractional x-values, depending on a, b, and the integer k.

7) Does a smaller plot step improve the graph?

Yes. Smaller steps sample the function more densely and show changes more clearly. Very tiny steps, however, increase table size and calculation load.

8) Is this the same as the greatest integer function?

Yes. In most textbooks, the floor function and greatest integer function refer to the same operation.

Related Calculators

quadratic equation to standard form calculatorx method factoring calculatorangle to decimal calculatordivide evenly calculatorpartial quotient calculatorimproper fraction to decimal calculatorslope intercept to standard form calculatorDigital Root CalculatorLong Addition Calculatorarea of uneven square calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.