Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How to convert binary to hexadecimal

by ikegami (Pope)
on Oct 11, 2007 at 13:49 UTC ( #644230=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $hex = sprintf('%X', oct("0b$bin"));
    
  2. or download this
    $hex = sprintf('%02X', ord($byte));
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://644230]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-09-22 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (191 votes), past polls