<pre>

                <@! COMMENT=“set base to 16 (hex) or 26">
                <@assign base 16>
                <@assign result ''>
                <@assign quotient 7562>
                <@WHILE EXPR="@@quotient > 0">
                        <@assign remainder <@calc expr="floor((<@var quotient> 
% <@var base>))">>
                        <@assign quotient <@calc expr="floor((<@var quotient> / 
<@var base>))">>
                        <@IF EXPR="len(@@outnbr) < 1">
                                <@assign result '<@SUBSTRING 
STR="123456789abcdefghijklmnop" START="@@remainder" NUMCHARS="1">'>
                        <@ELSE>
                                <@assign result '<@SUBSTRING 
STR="123456789abcdefghijklmnop" START="@@remainder" NUMCHARS="1"><@var result>'>
                        </@IF>
                </@WHILE>

                answer = @@result



</pre>



Ben Johansen
http://www.webspinr.com
[email protected]
Phone: 360-600-7775






----------------------------------------
 To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to