LaTeX symbols of floor and ceil functions

Symbol Command
$\lfloor x \rfloor = 3$ \lfloor x \rfloor = 3
$\lceil x \rceil = 3$ \lceil x \rceil = 3
\lfloor \frac{1}{2} \rfloor \\~\\
\lceil \frac{1}{2} \rceil

\[ \lfloor \frac{1}{2} \rfloor \\~\\ \lceil \frac{1}{2} \rceil \]

\left\lfloor \frac{1}{2} \right\rfloor \\~\\
\left\lceil \frac{1}{2} \right\rceil

\[ \left\lfloor \frac{1}{2} \right\rfloor \\~\\ \left\lceil \frac{1}{2} \right\rceil \]

LaTeX function

LaTeX