When I put a number into a variable and put that variable into \ang
, I get an siunitx
error:
\documentclass{article}
\usepackage{siunitx,pgfplots}
\begin{document}
\def\degreed{129.2234}
\pgfkeys{/pgf/number format/.cd,int trunc}
\pgfmathprintnumberto{\degreed}{\degree}
\degree\\
\ang{\degree}% Returns:
%! siunitx error: ``restricted-number''
%!
%! Token '$' forbidden in restricted numerical input.
\ang{129}%works
\end{document}
Is it possible to put a variable into \ang
?