1Math::Int128::die_on_ovUesrefrloCwo(n3t)ributed Perl DocMuamtehn:t:aItnito1n28::die_on_overflow(3)
2
3
4
6 Math::Int128::die_on_overflow - catch overflows when using Math::Int128
7
9 use Math::Int128 qw(uint128);
10 use Math::Int128::die_on_overflow;
11
12 my $number = uint128(2**64);
13 say($number * $number); # overflow error!
14
16 Math::Int128.
17
19 Copyright © 2011, 2013 by Salvador Fandiño (sfandino@yahoo.com)
20
21 This library is free software; you can redistribute it and/or modify it
22 under the same terms as Perl itself, either Perl version 5.8.8 or, at
23 your option, any later version of Perl 5 you may have available.
24
25
26
27perl v5.38.0 2023-07-20 Math::Int128::die_on_overflow(3)