<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% https://tex.stackexchange.com/q/308883/
\documentclass{article}
\usepackage{xsim,siunitx}
\xsimsetup{goal-print={\num{#1}}}
\sisetup{output-decimal-marker={,}}

\begin{document}

\begin{exercise}[points=2.5]
  foo
\end{exercise}

\end{document}
</pre></body></html>