Help for this page

Select Code to Download


  1. or download this
    #include "EXTERN.h"
    #include "perl.h"
    ...
            mpz_clear(big);
            Safefree(out);
    
  2. or download this
    package Math::Tohex;
    
    ...
    
    1;
    __END__
    
  3. or download this
    use ExtUtils::MakeMaker;
    
    ...
        VERSION_FROM => "lib/Math/Tohex.pm",
        LIBS => ["-lgmp"],
    );
    
  4. or download this
    perl Makefile.PL && make
    
  5. or download this
    perl -wE 'use Math::BigInt; say Math::BigInt->new("4335043554366887798
    +866555766")->as_hex;'