# phpman > info > Math::BigInt::GMP

[Math::BigInt](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt/markdown)::[GMP(3pm)](https://www.chedong.com/phpMan.php/man/GMP/3pm/markdown)User Contributed Perl [DocumentatioMath::BigInt](https://www.chedong.com/phpMan.php/perldoc/DocumentatioMath%3A%3ABigInt/markdown)::[GMP(3pm)](https://www.chedong.com/phpMan.php/man/GMP/3pm/markdown)

NAME
       [Math::BigInt::GMP](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3AGMP/markdown) - backend library for [Math::BigInt](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt/markdown) etc. based on GMP

SYNOPSIS
           # to use it with [Math::BigInt](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt/markdown)
           use [Math::BigInt](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt/markdown) lib => 'GMP';

           # to use it with [Math::BigFloat](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigFloat/markdown)
           use [Math::BigFloat](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigFloat/markdown) lib => 'GMP';

           # to use it with [Math::BigRat](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigRat/markdown)
           use [Math::BigRat](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigRat/markdown) lib => 'GMP';

DESCRIPTION
       [Math::BigInt::GMP](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3AGMP/markdown) is a backend library for [Math::BigInt](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt/markdown),
       [Math::BigFloat](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigFloat/markdown), [Math::BigRat](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigRat/markdown) and related modules.

       [Math::BigInt::GMP](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3AGMP/markdown) provides support for big integer calculations by
       means of the GMP C library. See <<https://gmplib.org/>> for more
       information about the GMP library.

       [Math::BigInt::GMP](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3AGMP/markdown) no longer uses [Math::GMP](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3AGMP/markdown), but provides its own XS
       layer to access the GMP C library. This cuts out another (Perl
       subroutine) layer and also reduces the memory footprint.

       [Math::BigInt::GMP](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3AGMP/markdown) inherits from [Math::BigInt::Lib](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3ALib/markdown).

STATIC FUNCTIONS
   $str = gmp_version();
       Returns the underlying GMP library's version as a string, e.g., 6.2.1.

BUGS
       Please report any bugs or feature requests to "bug-math-bigint-gmp at
       rt.cpan.org", or through the web interface at
       <<https://rt.cpan.org/Ticket/Create.html?Queue=Math-BigInt-GMP>>
       (requires login). We will be notified, and then you'll automatically be
       notified of progress on your bug as I make changes.

SUPPORT
       After installing, you can find documentation for this module with the
       perldoc command.

           perldoc [Math::BigInt::GMP](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3AGMP/markdown)

       You can also look for information at:

       GitHub
           <<https://github.com/pjacklam/p5-Math-BigInt-GMP>>

       RT: CPAN's request tracker
           <<https://rt.cpan.org/Dist/Display.html?Name=Math-BigInt-GMP>>

       MetaCPAN
           <<https://metacpan.org/release/Math-BigInt-GMP>>

       CPAN Testers Matrix
           <<http://matrix.cpantesters.org/?dist=Math-BigInt-GMP>>

       CPAN Ratings
           <<https://cpanratings.perl.org/dist/Math-BigInt-GMP>>

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

AUTHORS
       Tels <<http://bloodgate.com/>> in 2001-2007.

       Thanks to Chip Turner (CHIPT on CPAN) for providing [Math::GMP](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3AGMP/markdown), which
       was inspiring my work.

       Maintained by Peter John Acklam <<pjacklam@gmail.com>> 2010-2021.

       gmp_version() provided by FGasper on GitHub.

SEE ALSO
       [Math::BigInt::Lib](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3ALib/markdown) for a description of the API.

       Alternative libraries [Math::BigInt::Calc](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3ACalc/markdown), [Math::BigInt::FastCalc](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3AFastCalc/markdown), and
       [Math::BigInt::Pari](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt%3A%3APari/markdown).

       Some of the modules that use these libraries [Math::BigInt](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt/markdown),
       [Math::BigFloat](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigFloat/markdown), and [Math::BigRat](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigRat/markdown).

perl v5.34.0                      2022-02-06            [Math::BigInt](https://www.chedong.com/phpMan.php/perldoc/Math%3A%3ABigInt/markdown)::[GMP(3pm)](https://www.chedong.com/phpMan.php/man/GMP/3pm/markdown)
