The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


Math::BigInt::Pari - a math backend library based on Math::Pari


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

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

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


Math::BigInt::Pari inherits from Math::BigInt::Lib.

Provides support for big integer in Math::BigInt et al. calculations via means of Math::Pari, an XS layer on top of the very fast PARI library.


Please report any bugs or feature requests to bug-math-bigint-pari 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.


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

    perldoc Math::BigInt::Pari

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.


Original Math::BigInt::Pari written by Benjamin Trott 2001, <>.

Extended and maintained by Tels 2001-2007

Maintained by Peter John Acklam <> 2010-2021.

Math::Pari was written by Ilya Zakharevich.


Math::BigInt, Math::BigFloat, Math::Pari, and the other backends Math::BigInt::Calc, Math::BigInt::GMP, and Math::BigInt::Pari.