Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: integer value to hex value

by shyam123 (Initiate)
on Dec 05, 2012 at 11:21 UTC ( #1007267=note: print w/ replies, xml ) Need Help??


in reply to Re: integer value to hex value
in thread integer value to hex value

Hi Anamolous monk,

Thanks for the reply.But that was not the one i was looking for.If i have a integer say 55667788, i needed to have this as hex value 0x55667788 and not the hex(55667788).Please share your views on it.

thanks sham


Comment on Re^2: integer value to hex value
Re^3: integer value to hex value
by rovf (Priest) on Dec 05, 2012 at 11:38 UTC

    my $hexstr=sprintf('%x',55667788);

    -- 
    Ronald Fischer <ynnor@mm.st>
Re^3: integer value to hex value
by eyepopslikeamosquito (Canon) on Dec 05, 2012 at 11:39 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-07-02 01: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 (25 votes), past polls