Interpolate variable value inside macro call

Macros cannot touch values inside variables in general. They can output code that passes the variable to a function, but they themselves directly only see what a programmer see looking at a code not in execution yet (this is, variable names).

I do not use this library, but it seems to me that @u_str is useful to automatically import for you some “Units, dimensions, and fundamental constants” but you can manually import them and then call convert?

1 Like