I am trying to print the total points of my exercises using the "\num"-command of siunitx, in order to have a comma separted format.
I am getting an invalid-token error when trying
\num{\TotalExerciseGoal{points}{}{}}
which is probably because the xsim-command already prints a string which is not appliable to the "\num"-function.
I think the following MWE makes things more clear:
\documentclass{report}
\usepackage{xsim}
\usepackage{siunitx}
\sisetup{locale=DE}
\begin{document}
% Not working:
% Total Points: \num{\TotalExerciseGoal{points}{}{}}
% Should Do:
Total Points: \num{8.5}
\begin{exercise}[points=5]
Test exercise 1
\end{exercise}
\begin{exercise}[points=3.5]
Test exercise 2
\end{exercise}
\end{document}
Any ideas?

