I want to multiply a constant from a macro with a deimension using dimexpr.
When using real numbers the decimal point and the decimal digits are typeset behind the result and the result is a mutliplication with the floor value of the constant used.
\documentclass{report}
\begin{document}
\def\const{1.9}
\noindent
\the\dimexpr \linewidth*\const\relax \newline
\the\dimexpr \linewidth*\numexpr\const\relax\relax \newline
\the\linewidth
\end{document}
The second multiplication is an attempt to use the suggestion from here, to wrap the macro in a sub expression
Real numbers can be supported by ...thats why I wondered where I went wrong. I am propably used bypgfs math capabilities. – ted Aug 01 '13 at 13:12