# LaTeX fraction - Over command

Using \over and curly brackets {} is an easy alternative to express a LaTeX fraction.

Output Command
${a \over b}$ {a \over b}
${1 \over 3}$ {1 \over 3}
\frac{1}{3} \\~\\
{1 \over 3}


$\frac{1}{3} \\~\\ {1 \over 3}$

{ \sqrt{5} \over 3^2 } \\~\\
{ \int^{\pi}_{0} \sin x \, dx \over 3 } \\~\\
{ { \int^{\pi}_{0} \sin x \, dx } \over 3 }


${ \sqrt{5} \over 3^2 } \\~\\ { \int^{\pi}_{0} \sin x \, dx \over 3 } \\~\\ { { \int^{\pi}_{0} \sin x \, dx } \over 3 }$

## Over in over fraction

You can write a fraction of fraction by double over commands. The below comparison shows double \over seems to output what \frac in \over does.

{ 1 \over { 2 \over 3 } } \\~\\
{ 1 \over \frac{ 2 }{ 3 } } \\~\\
{ 1 \over \dfrac{ 2 }{ 3 } }


${ 1 \over { 2 \over 3 } } \\~\\ { 1 \over \frac{ 2 }{ 3 } } \\~\\ { 1 \over \dfrac{ 2 }{ 3 } }$

As expected, \over in \frac style works well.

\frac{ { 1 \over 2 } }{ 3 } \\~\\
\dfrac{ { 1 \over 2 } }{ 3 }


$\frac{ { 1 \over 2 } }{ 3 } \\~\\ \dfrac{ { 1 \over 2 } }{ 3 }$