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 - % Floor function in LaTeX \documentclass{article} \begin{document} In \LaTeX{}, the floor function can be typeset using the commands: \verb|\lfloor| and \verb|\rfloor|. Here is an example: floor($x$)=$\lfloor x \rfloor$ \end{document} ... For ...
🌐
Overleaf
overleaf.com › learn › latex › Brackets_and_Parentheses
Brackets and Parentheses - Overleaf, Online LaTeX Editor
Open this LaTeX fragment in Overleaf (with errors) The solution is to use "invisible" brackets to balance things out, i.e. adding a \right. at the end of the first line, and a \left.
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 - To write the ceiling function in LaTeX, you can use the following notation: \left\lceil x \right\rceil which renders as $\left\lceil x \right\rceil$. Here, the “\left” and “\right” commands are used to automatically adjust the size of ...
🌐
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 ...
🌐
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-cloud-studio
resources.latex-cloud-studio.com › learn › latex › mathematics › brackets-parentheses
Brackets and Parentheses in LaTeX - Complete Guide - LaTeX Cloud Studio Documentation
\{z : z > 0\}{z:z>0}Angle brackets: ⟨ · u · , v · ⟩ · \langle u, v \rangle⟨u,v⟩Absolute value: ∣ · x · − · y · ∣ · |x - y|∣x−y∣Norm: ∥ · v · ∥ · \|v\|∥v∥Floor and ceiling: ⌊ · x · ⌋ · \lfloor x ...
🌐
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 - In math and computer science, whenever ... number value x. You can define it using “floor(x)” or with two “half” square brackets with the value x between them....
Find elsewhere
🌐
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 ...
🌐
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 a donation. Thank you! Help Us ... Latex how to insert a blank or empty page with or without numbering \thispagestyle,\newpage,\usepackage{afterpage}
🌐
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.
🌐
Reddit
reddit.com › r/latex › matrix brackets displaying as floor brackets
r/LaTeX on Reddit: Matrix brackets displaying as floor brackets
October 21, 2024 - I'm writing some math stuff with LaTeX (powered by MathJax), and for some reason some of my matrices are displaying with floor brackets instead of full brackets, like this:
🌐
TexReady
texready.ir › docs › mathematics › parentheses_brackets_and_braces
Parentheses, Brackets and Braces - TexReady Documentation
4. Combinatorial expressions: Brackets can denote specific mathematical operations, such as Iverson brackets or floor and ceiling functions. \[ \left[ P(x) \right] \quad \text{(Iverson Bracket: 1 if true, 0 if false)} \] CopyCopied! Output: Braces {}, also known as curly braces, are used in mathematics for various purposes, primarily to denote sets and group multiple elements or conditions, also for defining collections or functions. Standard braces: In LaTeX, braces have a special meaning and must be escaped when used as symbols.
🌐
GeeksforGeeks
geeksforgeeks.org › engineering mathematics › brackets-in-latex
Brackets in Latex - GeeksforGeeks
July 15, 2025 - We can use \big, \Big, \bigg, and \Bigg as prefixes for brackets to make them successively larger. Read More, Matrices in Latex · Greek Letters in LaTeX · Arrow Symbols in LaTeX · Equality and Inference Symbols in LaTeX · Create Quiz · ...
🌐
John D. Cook
johndcook.com › blog › 2021 › 04 › 15 › floor-ceiling-bracket
Iverson's floor replaced Gauss's bracket
April 15, 2021 - There is a slight ambiguity in “the smallest integer”: At first, I read that as meaning smallest-magnitude (truncate towards zero), but the usual convention for the floor function is least-positive (truncate towards minus infinity). One might generalize the square-bracket notation by affixing negative infinity, zero, or positive infinity to the brackets, indicating truncation to the nearest integer in the direction of that value.
🌐
LaTeX.org
latex.org › board index › math & science
Whole and Fractional part symbols? - LaTeX.org
To quote the Wikipedia's "Floor and ceiling functions" article: "The floor and ceiling function are usually typeset with left and right square brackets where the upper (for floor function) or lower (for ceiling function) horizontal bars are missing, and, e.g., in the LaTeX typesetting system ...
🌐
Art of Problem Solving
artofproblemsolving.com › wiki › index.php › LaTeX:Symbols
LaTeX:Symbols - AoPS Wiki
Some of these work just as you'd imagine in LaTeX; type ( and ) for parentheses, [ and ] for brackets, and | and | for absolute value. However, other symbols have special commands: You might notice that if you use any of these to typeset an expression that is vertically large, like ...