Ruud H.G. van Tol wrote:
<> Toen ik R A Lichtensteiger kietelde, kwam er dit uit:
Swiss names and Dutch cites look wierd together ...
<> > MULTIPLIER="10"
<> >
<> > :0
<> > * $ 1^1 B ?? [$wsp]
<> > {
<> > TMP="$="
<> > SPACES=`echo $(( $TMP*$MULTIPLIER ));`
<> > TMP
<> > }
<>
<> If MULTIPLIER remains 10, you can just stick a "0" after TMP.
Sure, but there's no reason it will stay there, so I wanted to avoid
the shortcut. I don't know what the "right" ratio is for char:space
It might be 7, it might be 11 ...
<> New version:
<> dot = "." # single character
<>
<> :0 # temp = var1 +1
<> * 1 ^ 0
<> *$ $var1 ^ 0
<> { } temp = $=
<>
<> :0 # temp = var1 * var2
<> *$ dot ?? $var1^1 < $var2
<> { } temp = $=
<>
<> :0 # var1 = var1 * 100
<> *$ dot ?? $var1^1 < 100
<> { } var1 = $=
<>
<> :0 # temp = var1 / var2 (rounded down)
<> *$ dot ?? $var1^1 > $var2
<> { } temp = $=
This is a definite keeper!
Reto
--
R A Lichtensteiger rali(_at_)tifosi(_dot_)com
"It is usually my satisfaction to purr along gently about 60 mph and drink
in the air and the general view. I lose detail even at such moderate speeds
but gain comprehension." - T. E. Lawrence
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail