I'm making a picture with pstricks and would like to plot points whose coordinates are fractions a/c, b/c, where a, b, and c run over certain ranges. I tried using \numexpr but it rounds down. I wouldn't use \dimexpr, as I assume that a dimension (ending with pt or suchlike) isn't welcome as a pstricks coordinate. I tried using pgf but I can't get the syntax to work:
\documentclass{article}
\usepackage{amsmath}
\usepackage{pstricks,pst-node,multido}
\RequirePackage{pgf}%
\begin{document}
\psset{xunit=5cm,yunit=5cm}
\begin{pspicture}(0,0)(1,1)
\multido{\iC=1+1}{5}{%
\multido{\iA=0+1}{\iC}{%
\multido{\iB=0+1}{\iC}{%
\pscircle*(\pgfmathparse{\iA/\iC},\pgfmathparse{\iB/\iC}){0.02}
}
}
}
\end{pspicture}
\end{document}
Desired output (produced using TikZ, which works for this 5x5 example but runs out TeX's memory on the larger scales I want to use).
\iA\space\iC\space div
?