Math::Int128::die_on_overflow - catch overflows when using Math::Int128
use Math::Int128 qw(uint128); use Math::Int128::die_on_overflow; my $number = uint128(2**64); say($number * $number); # overflow error!
Math::Int128.
Copyright © 2011, 2013 by Salvador Fandiño (sfandino@yahoo.com)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Math::Int128, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Int128
CPAN shell
perl -MCPAN -e shell install Math::Int128
For more information on module installation, please visit the detailed CPAN module installation guide.