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

Convert big number from decimal to hexadecimal

by ambrus (Abbot)
on Jul 13, 2010 at 13:34 UTC ( #849259=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    dc -e16o4335043554366887798866555766p
    
  2. or download this
    perl -wE 'use Math::BigInt; say Math::BigInt->new("4335043554366887798
    +866555766")->as_hex;'
    
  3. or download this
    perl -wE '
    sub hadd { 
    ...
    } 
    say join "", reverse map { sprintf "%x", $_; } @$h;
    '
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://849259]
Approved by moritz
Front-paged by moritz
help
Chatterbox?
[haukex]: You can put it in SOPW, but use <readmore> tags
[haukex]: Also you might want to label it "code review"
[haukex]: Unless you have specific questions, in which case SSCCE's are much better
[cbeckley]: Excellent, thank you.
[cbeckley]: CUFP is more appropriate for stuff that's finished^h^h^h^h more advanced state of completeness?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2017-03-24 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (304 votes). Check out past polls.