---
name: "Math::Int64::die_on_overflow"
section: "3pm"
platform: "linux"
package: "libmath-int64-perl"
version: "0.57-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Math::Int64::die_on_overflow"
---

# Math::Int64::die\_on\_overflow(3pm)

catch overflows when using Math::Int64

## NAME

Math::Int64::die\_on\_overflow - catch overflows when using Math::Int64

## SYNOPSIS

```
  use Math::Int64 qw(uint64);
  use Math::Int64::die_on_overflow;
  my $number = uint64(2**32);
  say($number * $number); # overflow error!
```

## SEE ALSO

Math::Int64.
