procmail
[Top] [All Lists]

Re: Numerator / Denominator

2004-07-01 18:19:06
Toen wij *Dallman* Ross kietelden, kwam er dit uit:
*Ruud* H.G. van Tol:
*Ruud*:

I need a general division recipe.

It's not as general as I hoped it would be,
but it's general enough for now:
  http://www.xs4all.nl/~rvtol/procmail --> inc --> div.inc

Cool beans.  Fwiw, my aborted attempt from a couple of months
ago got as far as to work on positive integers only, even
though I incorporated David's trick (which I'd been saving
since 2002 when he first posted about it).

I also created div2.inc, that can handle much larger integers 
like 2,000,000,000 / 123,456,789 and calculates the remainder. 

See http://www.xs4all.nl/~rvtol/procmail --> div_demo.rc

-- 
Grtz, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>