I've got some macros storing information about various dimensions. When I start dividing by dimensions, though, I'm getting answers that don't make sense.
\documentclass{article}
\usepackage[landscape]{geometry}
\makeatletter
\def\aetopmargin{0.85in}%%
\def\aebotmargin{0.5in}%%
\def\aeworkspacetopsep{4ex}
\def\aeworkspacerulesep{0.65cm}
\edef\aeworkspaceheight{\dimexpr\paperheight-\aeworkspacetopsep-\aetopmargin-\aebotmargin}
\typeout{==>Work space height===>\strip@pt\dimexpr\aeworkspaceheight}
\typeout{==>Work space rule: ===>\strip@pt\dimexpr\aeworkspacerulesep}
\typeout{==>Their quotient is===>\strip@pt\dimexpr \dimexpr\aeworkspaceheight\relax / \dimexpr\aeworkspacerulesep\relax \relax}
\makeatother
\pagestyle{empty}
\begin{document}
empty
\end{document}
When I run this I get the following output on the terminal:
==>Work space height===>499.5079
==>Work space rule: ===>18.49411
==>Their quotient is===>0.00041
Shouldn't I be getting something more like
==>Their quotient is===>27.00902...
\newdimen\xxx \setdimen\xxx0.85inetc. – barbara beeton Apr 10 '14 at 20:29pgfmathreports the correct values so it must be an ambiguous interpretation ofetex– percusse Apr 10 '14 at 20:34pgfmath(because you mentioned it) and it gave me an "Arithmetic overflow" error. This is what I fed it:\pgfmathparse{\aeworkspaceheight/\aeworkspacerulesep}– A.Ellett Apr 10 '14 at 20:37\pgfmathparse{\dimexpr\aeworkspaceheight\relax/\dimexpr\aeworkspacerulesep\relax}I get the same erroneous0.00041– A.Ellett Apr 10 '14 at 20:40\pgfmathparse{\dimexpr\aeworkspaceheight\relax/\dimexpr\aeworkspacerulesep\relax}still not work correctly? – A.Ellett Apr 10 '14 at 20:43pgfmath. So I've got a solution, but not an answer. :) Thanks. – A.Ellett Apr 10 '14 at 20:46