21 Mar
2009
21 Mar
'09
11 p.m.
Am 21.03.2009 um 23:49 schrieb Aditya Mahajan:
\ifdim\dimexpr\!!dimena*100/\!!dimenb\relax>\dimexpr\!! dimenc*100/\!!dimend\relax this \else that \fi
Ah. I was using \dimexpr\!!dimena/\!!dimenb with crazy results. So the trick is to mulitply by a number in between. Thanks Wolfgang.
Yes because you're working with integers and dividing a number by a bigger number results in zero (that's why you could also use \numexpr above). Wolfgang