Code: Select all
\usetikzlibrary{math}
\begin{tikzpicture}
\tikzmath {
\num=0.4;
for \k in {1,...,10} {
\a=\k*\num;
{ \node at (0,-\k) {\a}; };
};
};
\end{tikzpicture}
I'm not quite sure how I'm going to handle something like \num=0.3333333, but so far the only values of \num I can get this to work on end in .0, .5, and .25 due to the inaccuracy. Using round() or int() doesn't seem to make any difference.
Any thoughts?
-Dan