Floor & step functions
Greatest Integer Function Calculator
⌊x⌋ and y = a⌊b(x − h)⌋ + k with a four-step logic trace, stair graph, and worked examples. Floor / greatest integer function for algebra.
By Jeff Beem
Updated
⌊x⌋ means the greatest integer at or below x (same as the floor function, often written [x]). Enter y = a⌊b(x − h)⌋ + k to get a four-line trace and a stair graph; keep b ≠ 0 or the transform will not run.
Evaluate y = a⌊b(x − h)⌋ + k
⌊x⌋ only (at your x)
⌊2.5⌋ = 2
2 ≤ x < 3
Fractional part: 0.5
y = 2⌊1(x − 1)⌋ + 3
y = 5
At x = 2.5, ⌊b(x−h)⌋ = 1
- Domain
- All real numbers (ℝ)
- Range
- { y | y = 2m + 3, m ∈ ℤ }
- Direction
- Increasing (a·b > 0)
- Zeros
- No exact zeros unless k is a multiple of a (k = 3, a = 2)
Step graph
Each step: closed circle on the left, open on the right (standard ⌊x⌋ style).
Logic trace
- Step 1: x − h2.5 − (1) = 1.5
- Step 2: b(x − h)1 × (1.5) = 1.5
- Step 3: ⌊b(x − h)⌋⌊1.5⌋ = 1
- Step 4: y = a·⌊…⌋ + k2 × (1) + (3) = 5
Worked example
- ⌊15.99⌋ = 15 · ⌊−3.2⌋ = −4 (not −3)
- y = 2⌊x − 1⌋ + 3 at x = 2.5: 2.5 − 1 = 1.5, ⌊1.5⌋ = 1, y = 5 (default inputs above)
Quick start
Type x plus a, b, h, k. Defaults match the worked example below (2⌊x − 1⌋ + 3 at x = 2.5). The trace shows the same four lines most teachers ask for on tests.
On the page
When b is zero
Logic trace order
Graph axes
Greatest Integer Function Calculator: Floor, Steps & Graph
Evaluate ⌊x⌋ and y = a⌊b(x − h)⌋ + k with a step-by-step trace and a staircase graph. Worked examples, domain and range, and open vs closed endpoints.
What This Greatest Integer Function Calculator Does
How the Math Works
- Definition:
- Transform:Let u = b(x − h). Then y = a⌊u⌋ + k. Each integer m picks out a horizontal step where ⌊u⌋ = m, so y = am + k on that step.
- Worked: ⌊15.99⌋15 ≤ 15.99 < 16, so the answer is 15.
- Worked: ⌊−3.2⌋−4 ≤ −3.2 < −3, so the answer is −4 (not −3).
- Worked: y = 2⌊x − 1⌋ + 3 at x = 2.5x − h = 1.5, b(x − h) = 1.5, ⌊1.5⌋ = 1, y = 2(1) + 3 = 5.
- Direction:For a ≠ 0 and b ≠ 0, the graph rises as x increases when ab > 0 and falls when ab < 0. If a = 0, y = k (flat line). If b = 0, the transformed form is not used here.
- Range:When a ≠ 0, outputs are exactly the values y = am + k as m runs through the integers.
How to Use This Calculator
- a = 0:y = k everywhere the transform runs; the Direction row shows a dash because slope is not defined.
- b = 0:No transform result, no graph, no trace until b is non-zero.
Greatest Integer Function Graph: Open vs Closed Endpoints
Floor Function vs Rounding Down a Decimal
Greatest Integer Function Calculator FAQ
What is the greatest integer function?
Why is ⌊−3.2⌋ equal to −4 and not −3?
Is the greatest integer function the same as the floor function?
Math.floor rules. To round one number with several rounding modes, use the Rounding Calculator Floor option.What does y = a⌊b(x − h)⌋ + k mean?
Why are some dots on the graph filled and others hollow?
How is this different from a piecewise step function calculator?
Sources & citations
References used for the calculation method and definitions. Links open in a new tab when available.
Standard definition of the floor / greatest integer function and ⌊x⌋ notation.
Overview of floor ⌊x⌋ and ceiling ⌈x⌉, including endpoint conventions on the real line.
Mathematical Reference Note
Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.
Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.
Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.