Peter John Acklam
and 1 contributors


Math::BigInt::GMPz - Use Math::GMPz for Math::BigInt routines


    # to use it with Math::BigInt
    use Math::BigInt lib => 'GMPz';

    # to use it with Math::BigFloat
    use Math::BigFloat lib => 'GMPz';

    # to use it with Math::BigRat
    use Math::BigRat lib => 'GMPz';


Math::BigInt::GMPz is a backend library for Math::BigInt, Math::BigFloat, Math::BigRat and related modules. It is not indended to be used directly.

Math::BigInt::GMPz uses Math::GMPz objects for the calculations. Math::GMPz is an XS layer on top of the very fast gmplib library. See

Math::BigInt::GMPz inherits from Math::BigInt::Lib.


The following methods are implemented.



Please report any bugs or feature requests to bug-math-bigint-gmpz at, or through the web interface at (requires login). We will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


You can find documentation for this module with the perldoc command.

    perldoc Math::BigInt::GMPz

You can also look for information at:


This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.


Peter John Acklam <>

Math::GMPz was written by Sisyphus Sisyphus <sisyphus at(@) cpan dot (.) org>


End user libraries Math::BigInt, Math::BigFloat, Math::BigRat, as well as bigint, bigrat, and bignum.

Other backend libraries, e.g., Math::BigInt::Calc, Math::BigInt::FastCalc, Math::BigInt::GMP, and Math::BigInt::Pari.