Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 exploiting the Monastery: (7)
As of 2014-12-22 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (112 votes), past polls