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

long integer to hexadecimal conversion

by perl_fan (Novice)
on Oct 01, 2009 at 10:08 UTC ( #798585=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    
    ...
    $intval = 123143230627;
    $hexval = sprintf ("%x", $intval);
    printf "value of $intval : $hexval \n";
    
  2. or download this
    > ./t.pl
    value of 3143230627 : bb59e4a3
    value of 123143230627 : ffffffff
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-07-04 08:35 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 (58 votes), past polls