Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: decimal -> hex

by kabel (Chaplain)
on Oct 11, 2002 at 06:55 UTC ( #204429=note: print w/ replies, xml ) Need Help??


in reply to decimal -> hex

dec -> hex: s/printf with %x

printf "%x\n", 15;

hex -> dec: function hex
print hex ('F');

to break a wheel on the fly (one of the rare sayings i learned - would be in german: "mit kanonen auf spatzen schiessen" :) )

the package Math::BaseCalc;

HTH


Comment on Re: decimal -> hex
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2015-07-29 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls