X-no-Archive:yes
Try this. I'm sure there's room for improvement. It does not clean up after
itself, and it does not correctly handle numbers greater than 255, if that
is needed.
:PRINT DECTOBIN.XEQ
PARM PARM=" "
SETVAR NUMBER !PARM
SETVAR STRING ""
WHILE NUMBER <> 0
SETVAR STRING "![!NUMBER MOD 2]"+"!STRING"
SETVAR NUMBER NUMBER/2
ENDWHILE
SETVAR STRING RHT("00000000"+"!STRING",8)
ECHO !STRING
Greg Stigers
http://www.cgiusa.com