Using \DeclarePairedDelimiter from mathtools, you could define macros \ceil and \floor, which will scale the delimiters properly (if starred):

\documentclass{minimal}
\usepackage{mathtools}
\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}

\begin{document}
  \begin{equation*}
    \floor*{\frac{x}{2}} \leq \frac{x}{2} \leq \ceil*{\frac{x}{2}}
  \end{equation*}
\end{document}

Result:

Answer from You on Stack Exchange
๐ŸŒ
LaTeX-Tutorial.com
latex-tutorial.com โ€บ home โ€บ blog โ€บ ceiling and floor function in latex
Ceiling and Floor Function in LaTeX | LaTeX-Tutorial.com
September 9, 2021 - In \(\LaTeX{}\), we use the commands \lfloor and \rfloor in math mode to get left and right symbols of the floor function.
๐ŸŒ
Math-Linux
math-linux.com โ€บ latex โ€บ faq โ€บ latex-faq โ€บ article โ€บ latex-floor-function
Latex floor function | Math-Linux.com
November 7, 2025 - We can use the floor function $\lfloor x \rfloor$, which returns the largest integer less than or equal to $x$. In this case, we have: $$\lfloor 4.7 \rfloor = 4$$ \[\lfloor 4.7 \rfloor = 4\] If you found this post or this website helpful and would like to support our work, please consider making ...
People also ask

How do you represent a big floor symbol in LaTeX?
For the big floor symbol you need to use the left and right commands before the lfloor and rfloor commands.
๐ŸŒ
physicsread.com
physicsread.com โ€บ home โ€บ how to represent floor symbol โŒŠxโŒ‹ and floor() function in latex?
How to represent floor symbol โŒŠxโŒ‹ and floor() function in LaTeX?
How do you represent a floor symbol with LaTeX?
There is no individual command for the floor symbol in latex. However, there are lfloor and rfloor commands to represent the two brackets of the floor symbol.
๐ŸŒ
physicsread.com
physicsread.com โ€บ home โ€บ how to represent floor symbol โŒŠxโŒ‹ and floor() function in latex?
How to represent floor symbol โŒŠxโŒ‹ and floor() function in LaTeX?
What other ways can a floor symbol be represented?
You can take the help of different packages in addition to the default command in latex. However, the same command is present in each package.
๐ŸŒ
physicsread.com
physicsread.com โ€บ home โ€บ how to represent floor symbol โŒŠxโŒ‹ and floor() function in latex?
How to represent floor symbol โŒŠxโŒ‹ and floor() function in LaTeX?
๐ŸŒ
Minibatch AI
minibatchai.com โ€บ 2023 โ€บ 07 โ€บ 15 โ€บ Latex_floor_ceil_round.html
Writing Ceil, Floor and Abs in LaTeX | Minibatch AI
July 15, 2023 - Additionally, we defined custom commands, โ€œ\ceil,โ€ โ€œ\floorโ€, and โ€œ\absโ€ to simplify the usage of these functions in LaTeX documents.
๐ŸŒ
Wikipedia
en.wikipedia.org โ€บ wiki โ€บ Floor_and_ceiling_functions
Floor and ceiling functions - Wikipedia
February 5, 2026 - In some sources, boldface or double brackets โŸฆxโŸง are used for floor, and reversed brackets โŸงxโŸฆ or ]x[ for ceiling. The fractional part is the sawtooth function, denoted by {x} for real x and defined by the formula ...
๐ŸŒ
Physics Read
physicsread.com โ€บ home โ€บ how to represent floor symbol โŒŠxโŒ‹ and floor() function in latex?
How to represent floor symbol โŒŠxโŒ‹ and floor() function in LaTeX?
September 17, 2024 - The floor function is one of the most commonly used mathematical functions, and itโ€™s represented by the symbol โŒŠxโŒ‹. You might also see it written as floor(x). This symbol is quite unique, it looks like a square bracket without the top parts. Now, when youโ€™re working in LaTeX, you wonโ€™t find a specific built-in command to directly use the floor symbol.
๐ŸŒ
Linux Hint
linuxhint.com โ€บ write-use-floor-symbol-latex
How to Write and Use a Floor Symbol in LaTeX โ€“ Linux Hint
Practical tutorial on how to write and use a floor โŒŠxโŒ‹ symbol in LaTeX using the $\floor$ as a source code and \rfloor and \lfloor for the right and left side.
๐ŸŒ
SCI Journal
scijournal.org โ€บ home โ€บ latex tutorial โ€บ how to write the floor symbol in latex?
How to write the floor symbol in LaTeX? 2026
July 13, 2022 - First of all the math mode is mandatory for this expression, second we need two commands one for each side of the values used as arguments of the function, the first command is \lfloor (left side) and the second one is \rfloor (right side); ...
Find elsewhere
Top answer
1 of 2
8

Your function scales both input $x$ and output $y$ up by a factor of $100$: $$ \lfloor 100 x \rfloor = 100y, $$ i.e. if we define these scaled coordinates $X = 100x$ and $Y = 100y$, then the equation relating inputs to outputs looks like $$ \lfloor X \rfloor = Y, $$ which you can think of the prototype of the relationship between the variables. Putting all the transformations in one diagram looks like
$$ x \to X \to Y \leftarrow y, $$ so the only way to build the composition $x \to y$ is to invert that last arrow $Y \leftarrow y$ to produce $Y \to y$, namely to divide by the scaling factor, hence we introduce fractions.

As always, we can hide the fraction inside of a definition, which doesn't change the fact that we're dividing by the scaling factor, but cosmetically, it might look nicer. We could, for instance, for any $p > 0$, define a rounding function with precision $\frac1p$ by $$ \operatorname{floor}_p(x) = \frac1p \lfloor p x \rfloor $$ that has the property that $\operatorname{floor}_p(x) = y$ for all $y \leq x \leq y + \frac1p$. With this notation, your example would look like $$ \operatorname{floor}_{100}(2.4783) = 2.47. $$

2 of 2
7

You are asking about truncation.

In the linked Wikipedia article, the notation is as follows.

Given a number $ x\in \mathbb {R}_+ $ to be truncated

and $n\in \mathbb {N} _{0}$, the number of digits to be kept after the decimal point,

the truncated value of $x $ is $\operatorname {trunc} (x,n)={\dfrac {\lfloor 10^{n}\cdot x\rfloor }{10^{n}}}$.

๐ŸŒ
CodeSpeedy
codespeedy.com โ€บ home โ€บ floor (โŒŠxโŒ‹) and ceiling (โŒˆxโŒ‰) function in latex
Floor (โŒŠxโŒ‹) and Ceiling (โŒˆxโŒ‰) function in LaTeX - CodeSpeedy
March 29, 2024 - In Mathematics the Floor function is used to rounds number to lower integer. To print this symbol in LaTeX you can use $ \lfloor x \rfloor $ command, and to get responsive Floor brackets you have to use the $ \left\lfloor x \right\rfloor $ command.
๐ŸŒ
LaTeX.org
latex.org โ€บ board index โ€บ general
How to ceil or floor the value of length command - LaTeX.org
\begin{document} \uselengthunit{mm} ... \verb|\unitlength|= \printlength{\unitlength} \\ \verb|\unitlength|= \TOmm[5]{\unitlength} \end{document} If you replace \FPround by \FPtrunc, you get the floor function....
๐ŸŒ
LaTeX.org
latex.org โ€บ board index โ€บ math & science
Whole and Fractional part symbols? - LaTeX.org
To quote the Wikipedia's "Floor ... and, e.g., in the LaTeX typesetting system these symbols can be specified with the \lfloor, \rfloor, \lceil and \rceil commands in math mode."...
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 76086558 โ€บ why-cant-i-use-int-mod-floor-even-if-i-added-the-package-where-these-fu
tikz - Why can't I use `int`, `mod`, `floor` even if I added the package where these functions are defined, in LaTeX? - Stack Overflow
\pgfmathsetmacro\startAt{(\startYear-\firstYear)+(1/12*(\startMonth-1))} \pgfmathsetmacro\endAt{(\endYear-\firstYear)+(1/12*(\endMonth))} \pgfmathsetmacro\trapAngle{80} \pgfmathsetmacro\maxTrapHeight{35} \pgfmathsetmacro\jobDurationMonths{(\endYear - \startYear) * 12 + (\endMonth - \startMonth)} % Define the threshold duration (in months) for the two linear segments. \pgfmathsetmacro\thresholdDuration{120} % Define the scaling factors for the two linear segments. \pgfmathsetmacro\shortDurationScale{0.8} \pgfmathsetmacro\longDurationScale{0.2} % Calculate the scaling factor using the piecewise function.
๐ŸŒ
Steemit
steemit.com โ€บ math โ€บ @dkmathstats โ€บ floor-and-ceiling-functions-of-numbers
Floor & Ceiling Functions Of Numbers โ€” Steemit
August 2, 2019 - Hello. In this math post, I go over the floor function and the ceiling function. The screenshot images are from my TeXWorks output as I typed out most of the contents in a LaTeX editor.
๐ŸŒ
GNU TeXmacs Forum
forum.texmacs.cn โ€บ t โ€บ ceil-and-floor-functions-in-texmacs โ€บ 1233
Ceil and floor functions in TeXmacs? - shortcuts - GNU TeXmacs Forum
November 7, 2022 - Dear Texmacs-community, thanks for the great program. It already became my main program for brainstorming and note-keeping as I feel its much more productive than writing latex. I wanted to know if there is a shortcut for the \lceil and \rceil (or \lfloor and \rfloor) latex commands and if ...
๐ŸŒ
Reddit
reddit.com โ€บ r/mathematics โ€บ how to express a floor function in terms of neither a floor or ceiling function?
r/mathematics on Reddit: How to express a floor function in terms of neither a floor or ceiling function?
October 29, 2023 -

I know I can express floor(a) in many ways involving summation, ceiling functions, etc. Is there a way to express a general floor function without the use of the floor function itself or the ceiling function?

๐ŸŒ
Overleaf
overleaf.com โ€บ learn โ€บ latex โ€บ Operators
Operators - Overleaf, Online LaTeX Editor
Characters in mathematical mode are usually shown in italics, but sometimes certain function names require different formatting which can be accomplished by using operators defined in LaTeX.
๐ŸŒ
Art of Problem Solving
artofproblemsolving.com โ€บ wiki โ€บ index.php โ€บ Floor_function
Floor function - AoPS Wiki
math training & tools Alcumus Videos For the Win! MATHCOUNTS Trainer AoPS Practice Contests AoPS Wiki LaTeX TeXeR MIT PRIMES/CrowdMath Keep Learning All Ten ... The greatest integer function, also known as the floor function, gives the greatest integer less than or equal to its argument.