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 ...
Discussions

Big floor symbols - TeX - LaTeX Stack Exchange
A LaTeX-y way to handle this issue would be to define a macro called, say, \floor, using the \DeclarePairedDelimiter device of the mathtools package. With such a setup, you can pass an optional explicit sizing instruction -- \Big and \bigg in the example code below -- or you can use the "starred" version of the macro -- \floor* -- to autosize the left and right hand brackets... More on tex.stackexchange.com
🌐 tex.stackexchange.com
Matrix brackets displaying as floor brackets
Hey! 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… More on reddit.com
🌐 r/LaTeX
1
2
October 15, 2024
symbols - 'Floor' and 'ceiling' functions - TeX - LaTeX Stack Exchange
Is there a convenient way to typeset the floor or ceiling of a number, without needing to separately code the left and right parts? For example, is there some way to do $\ceil{x}$ instead of $\lce... More on tex.stackexchange.com
🌐 tex.stackexchange.com
August 21, 2017
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
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 use the floor symbol ⌊x⌋ and floor() function in latex
How to Use the 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 use the floor symbol ⌊x⌋ and floor() function in latex
How to Use the 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 use the floor symbol ⌊x⌋ and floor() function in latex
How to Use the Floor Symbol ⌊x⌋ and floor() Function in LaTeX
🌐
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.
🌐
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 ...
🌐
Physics Read
physicsread.com › home › how to use the floor symbol ⌊x⌋ and floor() function in latex
How to Use the Floor Symbol ⌊x⌋ and floor() Function in LaTeX
September 18, 2021 - 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. The ⌊x⌋ bracket notation can be easily written in LaTeX using the commands \lfloor and \rfloor.
🌐
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 ...
Find elsewhere
🌐
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.
🌐
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 14, 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....
🌐
Math-Linux
math-linux.com › latex › faq › latex-faq › article › latex-floor-function
Latex floor function | Math-Linux.com
November 8, 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.
🌐
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.
🌐
Reddit
reddit.com › r/latex › matrix brackets displaying as floor brackets
r/LaTeX on Reddit: Matrix brackets displaying as floor brackets
October 15, 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:
🌐
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.
🌐
Useoctree
tools.useoctree.com › symbols › brackets
Useoctree
Browse common mathematical operators and Greek letters for your LaTeX documents. Loading... 23 symbols · ⟨ · \langle⟨ · Angle Bracket Left\langle · ⟩ · \rangle⟩ · Angle Bracket Right\rangle · ⟨ · x · ⟩ · \langle x \rangle⟨x⟩ · Angle Brackets\langle x \rangle · ⌈ · \lceil⌈ · Ceiling Left\lceil · ⌉ · \rceil⌉ · Ceiling Right\rceil · ⌈ · x · ⌉ · \lceil x \rceil⌈x⌉ · Ceiling\lceil x \rceil · ⌊ · \lfloor⌊ · Floor Left\lfloor ·
🌐
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 ...