Re: Binary to Hexadecimal

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu