I'm trying to make siunitx interpret a number stored in a separate file on disk, but \num{\input{number.txt}} fails with the following error message: Argument of \@iinput has an extra }. Is there another way to do this?
MWE (assuming a file called "number.txt" exists on disk and its content is a number such as 1 in my case):
\documentclass{article}
\usepackage{siunitx}
\begin{document}
\num{\input{number.txt}}
\end{document}

Scolumn not\num. – Clara May 11 '23 at 01:20