Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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: (11)
As of 2016-06-28 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (361 votes). Check out past polls.