Math::BigInt::GMP(3)
π Math::BigInt::GMP β the group chat edition π
okay so bestie, this is the manual page for Math::BigInt::GMP, which ships with perl v5.42.0 β yes we're fancy. Sit down, grab a strawberry π, and let me tell you about the backend library that makes your big numbers go brrr.
β¨ NAME β¨
Math::BigInt::GMP β backend library for Math::BigInt etc. based on GMP. that's the whole vibe. it's the cool older sibling that does the actual heavy lifting πͺ
π¦ SYNOPSIS π¦
here's how you actually summon it, no cap:
# to use it with Math::BigInt
use Math::BigInt lib => 'GMP';
# to use it with Math::BigFloat
use Math::BigFloat lib => 'GMP';
# to use it with Math::BigRat
use Math::BigRat lib => 'GMP';
literally just drop that lib => 'GMP' in there and you're living the dream β¨
πΈ DESCRIPTION πΈ
So Math::BigInt::GMP is a backend library for Math::BigInt, Math::BigFloat, Math::BigRat and all their related little modules. it's giving "the power behind the throne" energy π
It provides support for big integer calculations by means of the GMP C library. Wanna know more about GMP? go look at <https://gmplib.org/> β they've got the lore π§
okay and here's a glow-up update you should know about: Math::BigInt::GMP no longer uses Math::GMP, but provides its own XS layer to access the GMP C library. the way that cuts out another (Perl subroutine) layer and reduces the memory footprint?? iconic. ate and left no crumbs π
And for the family tree moment: Math::BigInt::GMP inherits from Math::BigInt::Lib. π«Ά
β STATIC FUNCTIONS β
π $str = gmp_version();
Returns the underlying GMP library's version as a string, e.g., 6.2.1. she tells you exactly what she's made of π
π BUGS π
Found a bug? a feature request? please please please report it to bug-math-bigint-gmp at rt.cpan.org, or slide through the web interface at <https://rt.cpan.org/Ticket/Create.html?Queue=Math-BigInt-GMP> (heads up: it requires login, so have your account ready π). We will be notified, and then you'll automatically be notified of progress on your bug as I make changes. we love a feedback loop π
π SUPPORT π
After installing, you can find documentation for this module with the perldoc command. bestie it's right there:
perldoc Math::BigInt::GMP
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>
π LICENSE π
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. periodt. π«Ά
π AUTHORS π
- Tels <http://bloodgate.com/> in 2001-2007.
- Thanks to Chip Turner (CHIPT on CPAN) for providing
Math::GMP, 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::Libfor a description of the API. (that's where the real docs live, iykyk)- Alternative libraries
Math::BigInt::Calc,Math::BigInt::FastCalc, andMath::BigInt::Pari. the whole squad π - Some of the modules that use these libraries
Math::BigInt,Math::BigFloat, andMath::BigRat. π
ngl if you got this far you're lowkey a Perl icon. go forth and compute big numbers, main character π¦β¨
that's the whole page bestie!! πΈ written by perl v5.42.0, dated 2025-03-27, filed under Math::BigInt::GMP(3) β mwah, stan, bookmark it, send it to the group chat π
π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Math-BigInt-GMP 1.7003-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Math-BigInt-GMP 1.7003-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Math-BigInt-GMP 1.7003-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Math-BigInt-GMP 1.7003-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms