Re: Binary to Hexadecimal
- Posted by Lucius L Hilley III <luciuslhilleyiii at JUNO.COM> Aug 12, 1997
- 853 views
On Tue, 12 Aug 1997 19:57:47 -0300 Eduardo Uemura Okada <cool at ART.COM.BR> writes: > > Hi to everyone, I want your help to some code about converting binary >numbers (8-bit) to hexadecimal values. > If anyone have some idea or code, it will be very helpful. > Thank you! > >Eduardo Uemura Okada >e-mail: cool at art.com.br > Please, I do enjoy answering questions. PLEASE read your documentation. Search your documentation. In the normal Euphoria Editor press ESC f <printf ENTER read that information. THEN press ESC f <sprintf ENTER read that information. There lies your answer. Sincerely Lucius L. Hilley III. 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 GOOD DAY --Lucius Lamar Hilley III -- E-mail at luciuslhilleyiii at juno.com -- JUNO JUNO JUNO. I use JUNO and -- I support transferring of files less than 60K. -- I can Decode both UU and Base64 format.