Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Integer to Hex?

by Daddio (Chaplain)
on Jun 09, 2001 at 01:35 UTC ( [id://87088]=note: print w/replies, xml ) Need Help??


in reply to Integer to Hex?

Update: Oops, oops, oops...I guess I didn't read the question well enough. That's what I get for trying a reply after this kind of week. Reply withdrawn.

D a d d i o

Replies are listed 'Best First'.
Re: Integer to Hex?
by Abigail (Deacon) on Jun 09, 2001 at 01:45 UTC
    No, it doesn't. hex interprets its argument as being a hex number. But what was asked was to get a hex representation of a number.

    BTW, your $dec_num is misleading. hex just returns a number. It doesn't make much sense calling that a decimal number. "decimal" is relevant when we talk about representing numbers - for instance when reading in a number, or printing it. But all we do here is storing it. Most likely in a binary format - but which format it is, is irrelevant on the level of the language.

    -- Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found