Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Think about Loose Coupling
 
PerlMonks  

Re: Integer to Hex?

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 08, 2001 at 21: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.