[Tex/LaTex] How to write a recurring decimal in LaTeX

math-mode

Title says it all. Since I am a newbie, I don't know how to do this.

Any help?

Best Answer

If you're thinking of using a horizontal bar over a recurring group of decimals, you could use the \overline command:

\documentclass{article}
\begin{document}
$\frac{1}{7}=0.\overline{142857}$
\end{document}

enter image description here