Hey' I'm trying to use the radians unit with siunitx package like so:
\newcommand{\rad}[1]{\SI{#1}{\radian}}
\rad{\dfrac{\pi}{3}}
and I get:
Package siunitx Error: Invalid token '\protect ' in numerical input. ^^I\rad{\dfrac{\pi}{3}}
Package siunitx Error: Invalid numerical input '\protect {\displaystyle(siunitx) {\begingroup \pi \endgroup \@@over \relax 3}}'. ^^I\rad{\dfrac{\pi}{3}}
I guess fractions aren't considered numerical inputs? What can I do about that?

\SIparses the first argument, and thus cannot handle abitrarily formatted input. You might want to try if\SI[parse-numers=false]{#1}{\radian}(untested). Also please post a full but minimal example that others can just copy and test instead of a sniplet link this. Here we have to guess and a lot of people does not bother and passes on the question. Others may try it but their choices for the rest of the code might be different than yours – daleif Oct 29 '20 at 15:26