Consider following code:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{forloop}
\begin{document}
\newcounter{i}
\forloop{i}{0}{\value{i} < 3}
{
% trying to get the text of the counter i i.e. 0 1 2
% I tried the following and doesn't seem to work
$\value{i}$
$\text\value{i}$
}
\end{document}
I've looked online and couldn't find anything so hope you can help.
\arabic{i}
…