On Sun, 22 Mar 2009, Marcin Borkowski wrote:

Dnia Sat, Mar 21, 2009 at 06:08:41PM -0400, Aditya Mahajan napisał(a):
Hi,

Can I divide dimensions to get a number in pdftex?

I have four dimensions \!!dimena, \!!dimenb, \!!dimenc and \!!dimend, and
I want

if (dimena/dimenb) > (dimenc/dimend)
  do something
else
  do otherthing

What about

if (dimena*dimend) > (dimenc*dimenb) ... ?

If dimenb and dimend are positive, this should be equivalent (assuming
you don't run into overflow).

I tried that, but that leads to overflow.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to