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::Lib for a description of the API. (that's where the real docs live, iykyk)
  • Alternative libraries Math::BigInt::Calc, Math::BigInt::FastCalc, and Math::BigInt::Pari. the whole squad 🌈
  • Some of the modules that use these libraries Math::BigInt, Math::BigFloat, and Math::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