functions of a real returning respectively the largest smaller and the smallest larger integer
{\displaystyle \lfloor x\rfloor =x-\{x\}}
{\displaystyle \lfloor x\rfloor =m}
{\displaystyle \lfloor x\rfloor }
{\displaystyle \lfloor x\rfloor \leq \lceil x\rceil ,}
In mathematics, the floor function is the function that takes as input a real number x, and gives as output the greatest integer less than or equal to x, denoted ⌊x⌋ or … Wikipedia
🌐
Wikipedia
en.wikipedia.org › wiki › Floor_and_ceiling_functions
Floor and ceiling functions - Wikipedia
February 5, 2026 - In mathematics, the floor function ... to the least integer greater 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....
🌐
Math is Fun
mathsisfun.com › sets › function-floor-ceiling.html
Floor and Ceiling Functions
The floor and ceiling functions give us the nearest integer up or down. The Floor of 2.31 is 2 The Ceiling of 2.31 is 3.
Discussions

Can someone explain to me what the floor and cealing functions are actually doing numerically?
“Mathematical operations” (i.e. arithmetic) are only a small part of math. A relation is simply a mapping of elements in one set to elements in another set, and that’s what the floor and ceiling functions do. More on reddit.com
🌐 r/learnmath
30
4
June 26, 2022
how does a floor function work? - Mathematics Stack Exchange
Can someone explain to me what is going on behind the scenes of a floor function? Edit: To clarify, what i want to know, is when i use floor(x), what is the computer actually doing to give me the result of the largest integer below x. For example,someone responded in the linked thread, More on math.stackexchange.com
🌐 math.stackexchange.com
August 18, 2017
discrete mathematics - Solving equations involving the floor function - Mathematics Stack Exchange
I'm not sure how to deal with the floor functions, so I have no idea where to start. More on math.stackexchange.com
🌐 math.stackexchange.com
February 20, 2013
What is the purpose of the Floor and Ceiling Functions?
You'd be amazed how much we use the floor function in number theory. After all, our main area of concern is the natural numbers, so whenever we step outside them and use other kinds of math (which is all the time), we need a way to translate our answer back to the integers. One simple example: counting digits of numbers. The first n-digit number is always 10n-1, so if we have an unknown number x and want to know how many digits it has, what we're "really" asking is which two powers of 10 it lies between. Thus 10n-1 <= x <= 10n n-1 <= log x <= n Thus n-1 is floor(log x), or n is ceil(log x), whichever you like. We've answered our strictly integral question by stepping outside the integers, then using the floor function to step back in. These are base-10 logs, by the way. Counting digits is the one context in pure math where we use them. More on reddit.com
🌐 r/askmath
4
0
February 2, 2014
🌐
GeeksforGeeks
geeksforgeeks.org › mathematics › floor-function
Floor Function - GeeksforGeeks
July 23, 2025 - Example 1: Find possible values of x if ⌊ x ⌋ = 4. ... We know that the floor function returns the largest integer less than or equal to the input number.
🌐
Reddit
reddit.com › r/learnmath › can someone explain to me what the floor and cealing functions are actually doing numerically?
r/learnmath on Reddit: Can someone explain to me what the floor and cealing functions are actually doing numerically?
June 26, 2022 -

When I truncate a number what my brain actually does is ignoring the fractional part of said number. But its not doing any real math.

I understand I can express a truncate function with conditional floor and cealing functions... but thats is not what I need.

I need someone to teach me how to arrive from a number to its integer using only mathematical operations and not logical functions.

I need to know...

Plz help me someone...

🌐
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.
Top answer
1 of 5
4

This is better suited for the programming forums but....

Your computer program is probably working with a binary representation of a number. To compute the floor function, the computer does exactly the same thing you do: e.g. if it holds a representation of the positive binary numeral

$$ 100110.01011101 $$

then it simply replaces every digit to the right of the point with a zero:

$$ 100110.00000000 $$

The processor your program runs on likely has assembly language instructions for performing this exact operation when a number is stored in a register in IEEE 754 standard format (which is almost always used to store floating-point numbers).

2 of 5
1

if you are asking about what the computer does it is like this: you have the variable

which means that out off all the integers that beneath take the largest.

now the computer doesn't has the function or the group or any of those stuff so he do it differently, the computer save memory with 's and 's, bits, integer he saves with 32-bits(usually)

for understanding with 8-bits it looks like this:

$1111~1111$bits

$1000~0000$bits

$0111~1111$bits

now for float he has a different method, 32-bit format looks like this:

$\underbrace{0}_{0=positive\\1=negative}\underbrace{00000000}_{the~exponent }~~\underbrace{00000000000000000000000}_{the~fraction~part}$

now how exactly this format works is not important now, but you can see from this format that if you have the float, for example, $0~~10000000~11000000000000000000000(=3.5)$ the computer can just ignore the last 22 bits and take only $0~~10000000~1$, the computer can extract all he needs from the first 10 bits if you do interested in how the float itself works:

the computer look at the first bit and put it in var name AXL(for this example) and do now he takes the last part and do $DX=1+\text{[the bit]}^\text{[the bit position]}+\text{[the bit]}^\text{[the bit position]}+...$

and the end result is:

$AX\times (DX\times 2^{\text{[the middle part value]}})$

now because that every part after the 10th bit is quarter or less you don't need them when you use floor

🌐
Effortless Math
effortlessmath.com › math-topics › applying-floor-and-ceiling-functions
Applying Floor And Ceiling Functions: Practical Examples And Solutions - Effortless Math: We Help Students Learn to LOVE Mathematics
November 29, 2023 - So in general form, \( |x|=x \) for \(x≥0 \) and \( |x|=-x for x<0\). The graph of absolute value function, looks like the letter “V”: Brackets, or brackets without the bent tops \( “⌊…⌋” \) are the mathematical symbol for floor function. This function rounds the number inside it down to the nearest integer.
Find elsewhere
🌐
Wolfram MathWorld
mathworld.wolfram.com › FloorFunction.html
Floor Function -- from Wolfram MathWorld
September 27, 2013 - In this work, the symbol is used to denote the nearest integer function since it naturally falls between the and symbols. The floor function is implemented in the Wolfram Language as Floor[z], where it is generalized to complex values of as illustrated above.
🌐
Cut the Knot
cut-the-knot.org › arithmetic › whole_part.shtml
The Floor Function
For a given real $x,$ $\lfloor x\rfloor$ denotes the largest integer $n$ that does not exceed $x.$ From the definition, $\lfloor x\rfloor + 1$ is always greater than $x.$ $\lfloor x\rfloor = x,$ for all integer $x.$ For non-integer numbers, $\lfloor x\rfloor$ is strictly less than $x.$ The inequality $\lfloor x\rfloor \le x \lt\lfloor x\rfloor +1$ always holds. We can now define other functions via formulas that include $\lfloor x\rfloor.$ Take, for example, $f(x) = \lfloor\sin (x)\rfloor.$ Can you draw the graph of this function? There are many curiosities related to the floor function.
🌐
Testbook
testbook.com › home › maths › floor function
Floor Function: Graph, Domain, Range, Properties & Solved Examples
Let’s see this with an 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.
🌐
Brilliant
brilliant.org › wiki › floor-function
Floor Function | Brilliant Math & Science Wiki
To illustrate, here is a proof of (2). If \( x\) is an integer, then \( \lfloor x \rfloor + \lfloor -x \rfloor = x+(-x) = 0. \) If \( x \) is not an integer, then \( \lfloor x \rfloor < x < \lfloor x \rfloor + 1.\) Then \( -\lfloor x \rfloor -1 < -x < -\lfloor x \rfloor, \) and the outsides of the inequality are consecutive integers, so the left side of the inequality must equal \( \lfloor -x \rfloor, \) by the characterization of the greatest integer function given in the introduction. So \( \lfloor -x \rfloor = -\lfloor x \rfloor - 1,\) or \( \lfloor x \rfloor + \lfloor -x \rfloor = -1.\) \(_\square\) Problems involving the floor function of \( x\) are often simplified by writing \( x = n+r \), where \( n = \lfloor x \rfloor \) is an integer and \(r = \{x\} \) satisfies \( 0\le r <1.\)
🌐
W3Schools
w3schools.com › c › ref_math_floor.php
C Math floor() Function
C Examples C Real-Life Examples ... ... printf("%f", floor(0.60)); printf("%f", floor(0.40)); printf("%f", floor(5)); printf("%f", floor(5.1)); printf("%f", floor(-5.1)); printf("%f", floor(-5.9)); Try it Yourself » · The floor() function rounds a number DOWN to the nearest integer...
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Math › floor
Math.floor() - JavaScript | MDN
* * @param {"round" | "floor" | "ceil"} type The type of adjustment. * @param {number} value The number. * @param {number} exp The exponent (the 10 logarithm of the adjustment base). * @returns {number} The adjusted value. */ function decimalAdjust(type, value, exp) { type = String(type); if ...
🌐
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.
🌐
Microsoft Support
support.microsoft.com › en-us › office › floor-math-function-c302b599-fbdb-4177-ba19-2c2b1249a2f5
FLOOR.MATH function - Microsoft Support
The multiple to which you want to round. Mode Optional. The direction (toward or away from 0) to round negative numbers. By default, positive numbers with decimal portions are rounded down to the nearest integer. For example, 6.3 is rounded down to 6, using the default Significance (1).
🌐
W3Schools
w3schools.com › php › func_math_floor.asp
PHP floor() Function
The floor() function rounds a number DOWN to the nearest integer, if necessary, and returns the result.
🌐
YouTube
youtube.com › watch
The Floor Function - YouTube
Short video where we talk about the floor function and give examples.My Courses: https://www.freemathvids.com/Bid on math books: https://www.ebay.com/str/the...
Published   August 14, 2024
Top answer
1 of 4
18

HINT: Let $n=\lfloor x\rfloor$, so that $n\le x<n+1$. Let $\alpha=x-n$, the fractional part of $x$, so that $x=n+\alpha$. You’re looking for those $x$ such that $\lfloor 2x\rfloor=3\lfloor x\rfloor$, i.e., such that $\lfloor 2(n+\alpha)\rfloor=3n$.

Clearly $\lfloor 2(n+\alpha)\rfloor=\lfloor 2n+2\alpha\rfloor$, and because $2n$ is an integer, $\lfloor 2n+2\alpha\rfloor=2n+\lfloor 2\alpha\rfloor$. Can you finish it from here?

2 of 4
6

$\newcommand{\+}{^{\dagger}}% \newcommand{\angles}[1]{\left\langle #1 \right\rangle}% \newcommand{\braces}[1]{\left\lbrace #1 \right\rbrace}% \newcommand{\bracks}[1]{\left\lbrack #1 \right\rbrack}% \newcommand{\dd}{{\rm d}}% \newcommand{\isdiv}{\,\left.\right\vert\,}% \newcommand{\ds}[1]{\displaystyle{#1}}% \newcommand{\equalby}[1]{{#1 \atop {= \atop \vphantom{\huge A}}}}% \newcommand{\expo}[1]{\,{\rm e}^{#1}\,}% \newcommand{\floor}[1]{\,\left\lfloor #1 \right\rfloor\,}% \newcommand{\ic}{{\rm i}}% \newcommand{\imp}{\Longrightarrow}% \newcommand{\ket}[1]{\left\vert #1\right\rangle}% \newcommand{\pars}[1]{\left( #1 \right)}% \newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} \newcommand{\pp}{{\cal P}}% \newcommand{\root}[2][]{\,\sqrt[#1]{\,#2\,}\,}% \newcommand{\sech}{\,{\rm sech}}% \newcommand{\sgn}{\,{\rm sgn}}% \newcommand{\totald}[3][]{\frac{{\rm d}^{#1} #2}{{\rm d} #3^{#1}}} \newcommand{\ul}[1]{\underline{#1}}% \newcommand{\verts}[1]{\left\vert #1 \right\vert}% \newcommand{\yy}{\Longleftrightarrow}$

  1. If $x$ $\large\tt is$ an integer, we have $2x = 3x\quad\imp\quad \color{#0000ff}{\large x = 0}$.
  2. if $x$ $\large \tt\mbox{is not}$ an integer: $x = n + \delta$ where $n$ is an integer and $0 < \delta < 1$. Then, $$ \floor{2x} = 3\floor{x} \quad\imp\quad \floor{2n + 2\delta} = 3\floor{n + \delta} = 3n \tag{1} $$ We have two sub-cases:
    1. $0 < \delta < 1/2$: $\pars{1}$ is reduced to: $$ 2n = 3n\quad\imp\quad n = 0\quad\imp\quad \color{#0000ff}{\large x\ \in\ \pars{0,{1 \over 2}}} $$
    2. $1/2 \leq \delta < 1$: $\pars{1}$ is reduced to: $$ 2n + 1 = 3n\quad\imp\quad n = 1\quad\imp\quad \color{#0000ff}{\large x\ \in\ \pars{1,2}} $$

Then, the solution becomes $\ds{\color{#0000ff}{x \in \left[0,{1 \over 2}\right) \bigcup \pars{1,\vphantom{1 \over 2}2}}}$.

How about $x < 0$ ?. I left it to the OP.