🌐
Testbook
testbook.com β€Ί home β€Ί maths β€Ί floor function
Floor Function: Graph, Domain, Range, Properties & Solved Examples
We will plot the graph for the above function. To do that we need to find out the value of y for all the values between 0 to 4. ... Since x tends from 0 to 4, we will consider only till 4 on the x axis. ... We can form a general formula for the integration of floor function based on this.
🌐
MedCalc
medcalc.org β€Ί en β€Ί manual β€Ί floor-function.php
FLOOR function calculator and graph - MedCalc Manual
September 9, 2025 - FLOOR(x) rounds the number x down. The argument x can be a real number or a matrix. When it is a matrix, the function returns a matrix with the same dimensions and with the FLOOR function applied to all elements.
People also ask

What is the floor function example?
If we have a number say 1.58 and 0.1 as its floor function, then after applying the floor function, the value of 1.58 will be rounded off to the nearest multiple of 0.1 which is nothing but 1.5.
🌐
testbook.com
testbook.com β€Ί home β€Ί maths β€Ί floor function
Floor Function: Graph, Domain, Range, Properties & Solved Examples
How do you write a floor function?
FLOOR{number, significance). Here FLOOR is the calling function, which tells the program or language what operation is to be performed on the enclosed arguments. The FLOOR function syntax has the following arguments: Number: The numeric value you want to round. Significance: The multiple to which you want to round.
🌐
testbook.com
testbook.com β€Ί home β€Ί maths β€Ί floor function
Floor Function: Graph, Domain, Range, Properties & Solved Examples
What does floor function do?
The floor function rounds numbers down, toward zero, to the nearest multiple of significance.
🌐
testbook.com
testbook.com β€Ί home β€Ί maths β€Ί floor function
Floor Function: Graph, Domain, Range, Properties & Solved Examples
🌐
Analyze Math
analyzemath.com β€Ί function β€Ί floor_function.html
Floor Function
The floor function floor(x) is defined as the function that gives the highest integer less than or equal to x. The graph of floor(x) is shown below.
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί mathematics β€Ί floor-function
Floor Function - GeeksforGeeks
July 23, 2025 - The graph below illustrates how the floor function works. For example, ⌊3.5βŒ‹ = 3, as the greatest integer less than or equal to 3.5 is 3.
🌐
Effortless Math
effortlessmath.com β€Ί math-topics β€Ί how-to-graphing-the-floor-function
How to Graphing the Floor Function - Effortless Math: We Help Students Learn to LOVE Mathematics
3.2. Horizontal Shifts: A term β€˜\((x-b)\)’ shifts the graph b units to the right if b is positive and to the left if negative. 3.3. Stretches and Compressions: A multiplicative factor β€˜\(a\)’ outside the floor function stretches the graph vertically, while a factor inside affects the horizontal aspect.
🌐
Desmos
desmos.com β€Ί calculator β€Ί ilwrqjoy6u
Floor function | Desmos
Explore math with our beautiful, free online graphing calculator. Graph functions, plot points, visualize algebraic equations, add sliders, animate graphs, and more.
🌐
Math is Fun
mathsisfun.com β€Ί sets β€Ί function-floor-ceiling.html
Floor and Ceiling Functions
The Floor Function Β· A solid dot means "including" and an open dot means "not including". an open dot at y=1 (so it doesn't include x=2), and a solid dot at y=2 (which does include x=2) so the answer is y=2 Β· And this is the Ceiling Function: The Ceiling Function Β· See them together here: ../algebra/images/function-graph.js?fn0=floor(x)&fn1=ceil(x)&xmin=-5&xmax=5&ymin=-3&ymax=3 Β·
🌐
Cuemath
cuemath.com β€Ί algebra β€Ί floor-and-ceiling-function
Floor Function and Ceiling Function - Definition, Formulas, Properties, Examples
The floor function is denoted by floor(x) or \(\lfloor x \rfloor\). Also sometimes the floor function is represented using double brackets and is written as [[x]]. An example of floor function is \(\lfloor 2.3 \rfloor\) = 2, and \(\lfloor -3.4 \rfloor \) = -4.
Find elsewhere
🌐
Omni Calculator
omnicalculator.com β€Ί math β€Ί floor-function
Floor Function Calculator
January 18, 2024 - \lfloor 7 \rfloor = 7⌊7βŒ‹=7. Note how crucial it is here to remember the "or equal to" part of the definition! ... As you can see in the above examples, we can also think of the floor function as rounding the number down to the nearest integer.
🌐
Statistics How To
statisticshowto.com β€Ί home β€Ί floor function and ceiling function: simple definition, table & graph
Floor Function and Ceiling Function: Simple Definition, Table & Graph
August 4, 2019 - For example: ... The floor function is similar to the ceiling function, which rounds up. Essentially, they are the reverse of each other. The floor function is a type of step function where the function is constant between any two integers. The table below shows values for the function from -5 to 5, along with the corresponding graph...
🌐
Cut the Knot
cut-the-knot.org β€Ί arithmetic β€Ί whole_part.shtml
The Floor Function
For example, $\lfloor -3.5\rfloor = -4$ in accordance with the definition. $\lfloor x\rfloor$ has the property $\lfloor x + n\rfloor = \lfloor x\rfloor + n.$ So that integer pieces can be taken in and out of the brackets. The graph of $y = \lfloor\sin (x)\rfloor$ is shown below.
🌐
Wikipedia
en.wikipedia.org β€Ί wiki β€Ί Floor_and_ceiling_functions
Floor and ceiling functions - Wikipedia
February 5, 2026 - In mathematics, the floor function ... than or equal to x, denoted ⌈xβŒ‰ or ceil(x). For example, for floor: ⌊2.4βŒ‹ = 2, βŒŠβˆ’2.4βŒ‹ = βˆ’3, and for ceiling: ⌈2.4βŒ‰ = 3, and βŒˆβˆ’2.4βŒ‰ = βˆ’2....
Top answer
1 of 2
22

You can use the jump mark mid style for this, which draws horizontal unconnected line segments.

\begin{tikzpicture}
\begin{axis}[axis lines=middle]
\addplot [
    jump mark mid,
    domain=-3:3,
    samples=100,
    very thick, red
] {floor(3*x)+2};
\end{axis}
\end{tikzpicture}

to get


A fancier approach could be to use the discontinuous style from the question Probability density function of Uniform Distribution to plot the intervals.

2 of 2
1

Two small refinements to Jake's solution:

  • The start and end line have only half of the line width as the other lines because of pgfplot's clipping of the plot area. This can be fixed by either disable clipping clip=false or enlarging the plot are in the vertical directions: enlarge y limits={abs=.6pt} (very thick is 1.2pt).

  • The more serious issue is that the start and end points of the lines are not correct, after adding option grid:

    The sample points left and right of a jump value do not have the same distance, for example at x = 1.

There are two ways of fixing it:

The first way works by accident only:

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis lines=middle, grid, clip=false]
\addplot [
    jump mark right,
    mark=*,
    domain=-3:3,
    samples=19,
    very thick, red
] {floor(3*x)+2};
\end{axis}
\end{tikzpicture}
\end{document}

The sample points are marked. The number of samples is the number of lines plus one for an additional end point:

It works only, because x values for the sample points except the first are a tiny bit (rounding error) too small.

A more stable solution is to use the middle points of the lines. Unhappily it complicates the domain and plot area options. Version with grid and marked sample points and without clipping:

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
    axis lines=middle,
    grid,
    clip=false,
    xmin=-3,
    xmax=3,
    ymin=-7,
    ymax=10,
    enlarge y limits={abs=.6pt}, % very thick: 1.2pt
]
\addplot [
    jump mark mid,
    mark=*,
    domain=-3 - 1/6:3 + 1/6,
    samples=20,
    very thick, red
] {floor(3*x)+2};
\end{axis}
\end{tikzpicture}
\end{document}

And the final solution:

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
    axis lines=middle,
    xmin=-3,
    xmax=3,
    ymin=-7,
    ymax=10,
    enlarge y limits={abs=.6pt}, % very thick: 1.2pt
]
\addplot [
    jump mark mid,
    domain=-3 - 1/6:3 + 1/6,
    samples=20,
    very thick, red
] {floor(3*x)+2};
\end{axis}
\end{tikzpicture}
\end{document}

🌐
Vaia
vaia.com β€Ί all textbooks β€Ί math β€Ί calculus early transcendentals β€Ί chapter 1 β€Ί problem 64
Problem 64 The floor function, or greatest ... [FREE SOLUTION] | Vaia
These horizontal lines represent the floor function for varying values of x within our chosen range. Keep in mind that each endpoint of a line segment is open on the right side and closed on the left side to indicate that, for example, \(\lfloor x\rfloor = 1\) when \(1 \leq x < 2\). ... After connecting the plotted points with horizontal lines, you should now have a graph of the floor function within the range \(-3 \leq x \leq 3\).
🌐
Wyzant
wyzant.com β€Ί resources β€Ί ask an expert
Sketch the graph of the floor function | Wyzant Ask An Expert
August 2, 2023 - f(x) =[x + 1] , over the interval [-3, 3) Β· Raymond B. answered Β• 08/02/23
🌐
Stack Exchange
math.stackexchange.com β€Ί questions β€Ί 4557957 β€Ί drawing-floor-and-ceiling-functions
Drawing floor and ceiling functions - Mathematics Stack Exchange
To graph the function $$𝑓: ... for various values of $x$. For example, if $x=2.5$, then $2\left\lfloor x\right\rfloor=2(2)=4$, so you would plot the point $(2.5, 4)$. You would continue this process for various values ...
🌐
CK-12 Foundation
ck12.org β€Ί all subjects β€Ί algebra i β€Ί graphing linear inequalities β€Ί what is the greatest integer function/step function/floor function and its graph?
What is the greatest integer function/step function/floor function and its graph? - Symbol, Definition, & Graph | CK-12 Foundation
July 14, 2025 - The greatest integer function, also known as the step function or floor function, is a type of mathematical function. It is denoted by @$\begin{align*}⌊xβŒ‹.\end{align*}@$. The function rounds down a real number to the largest integer less than or equal to the number.
🌐
Mathwords
mathwords.com β€Ί f β€Ί floor_function.htm
Mathwords: Floor Function
... Step 3: Multiply by the rate per hour to find the charge. ... Answer: You are charged for 3 full hours, totaling $12. ... The floor of a negative number rounds it down (toward more negative values), not toward zero. For example, βŒŠβˆ’1.5βŒ‹ = βˆ’2, not βˆ’1.