I am trying to align decimal in this table by using tabularray package. My code
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{diagbox}
\usepackage{siunitx}
\sisetup{output-decimal-marker={,}}
\begin{document}
\begin{table}[htbp]
\centering
\begin{tblr}{
colspec={X[r]X[r]X[r]X[r]X[r]X[r]X[r]X[r]X[r]X[r]}}
\num{48,5} & 43 & 50 & 55 & 45 & 60 & 53 & \num{55,5} & 44 & 65 \\
51 & 62,5 & 41 & \num{44,5} & 57 & 57 & 68 & 49 & 46,5 & \num{53,5} \\
61 & \num{49,5} & 54 & 62 & 59 & 56 & 47 & 50 & 60 & 61 \\
\num{49,5} & \num{52,5} & 57 & 47 & 60 & 55 & 45 & \num{47,5} & 48 & \num{61,5}
\\
\end{tblr}
\end{table}
\end{document}
How can I align it?


table-formatto how many digits, minus signs etc. you have, see the siunitx documentation for details – samcarter_is_at_topanswers.xyz Jan 23 '23 at 08:57X[r,si={table-format=2.1}]one time for all table? – minhthien_2016 Dec 11 '23 at 02:05