Floor Right in LaTeX (\rfloor)
- LaTeX command
\rfloor- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
- Copy the Unicode character
- ⌋
U+230B
Where it is used
Right floor bracket, closing the floor function notation for rounding down.
Close any \lfloor with \rfloor, for example in \lfloor x \rfloor or the integer division \lfloor a/b \rfloor that many programming languages implement for positive operands. When the left bracket was set with \left\lfloor, the right one must be \right\rfloor in the same math group, or LaTeX reports a missing \right. The pair is also used for rounding to the nearest integer via \lfloor x + 1/2 \rfloor. A paired-delimiter macro such as \floor{x} keeps notation consistent in long documents.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Floor Right: $\rfloor$
\[ \operatorname{round}(x) = \lfloor x + \tfrac{1}{2} \rfloor \]
\end{document}Related symbols
- Floor
\lfloor x \rfloor - Floor Left
\lfloor - Double Vertical Bar
\| - Ceiling
\lceil x \rceil - Norm
\| x \| - Ceiling Right
\rceil
Frequently asked questions
- How do I write Floor Right in LaTeX?
- Type \rfloor in math mode, for example $\operatorname{round}(x) = \lfloor x + \tfrac{1}{2} \rfloor$. It works in plain LaTeX without loading any package.
- Which package do I need for \rfloor?
- None. \rfloor is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \rfloor in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\rfloor$ in running text. If you only need the glyph in text, paste the Unicode character ⌋ instead (with XeLaTeX or LuaLaTeX and a font that has it).