Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Answer: How do I convert from decimal to hexidecimal?

by line_noise (Sexton)
on Apr 25, 2002 at 17:40 UTC ( #162055=categorized answer: print w/replies, xml ) Need Help??

Q&A > numbers > How do I convert from decimal to hexidecimal? - Answer contributed by line_noise

Alternatively, to get the hex in a variable:

$octet = 192; $out = pack "c", $octet; $hex = unpack "H2", $out;

Edited by davido: Added code tags.

Replies are listed 'Best First'.
Re: Answer: How do I convert from decimal to hexidecimal?
by Anonymous Monk on Mar 31, 2004 at 21:43 UTC
    0x40625d9a
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Corion]: Hey, it's Friday ;))
[Discipulus]: yes! even here.. but we'll slepp an hour less this weekend..

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2017-03-24 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (298 votes). Check out past polls.