Re: Binary to Hexadecimal
- Posted by Irv <mountains at MINDSPRING.COM> Aug 13, 1997
- 1377 views
Lucius L Hilley III wrote:
> include get.e--used here for the value() command.
> sequence s
> s = sprintf(1, "%x", 156)--get hex for 156
> puts(1, s & "\n")--print hex of 156
> puts(1, value("#" & s))--print value of hex of 156
> --which is 156
>
I don't think this will work. Try, for example, using these routines to
print 11011110 (binary) in hex (or decimal, for that matter)
Irv

