procmail
[Top] [All Lists]

Re: multiply by -1

2005-07-07 05:35:42
On Thu, Jul 07, 2005 at 11:58:19AM +0200, Ruud H.G. van Tol wrote:
Dallman Ross:

What's a good method of getting an an inverse value
for an unknown digit?

     SPC = ' '
     :0  # multiply by -1
     *$ SPC ?? $VAR ^ 1 < -1
     { } VAR = "$="


Scores are integers, so decimals are truncated.


Another keeper.  Thanks, Ruud.

Dallman

____________________________________________________________
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>