# Integer overflow

**URL:** <https://discourse.julialang.org/t/integer-overflow/99230>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [May 22, 2023, 3:28pm UTC](https://discourse.julialang.org/t/integer-overflow/99230 "2023-05-22T15:28:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![frylock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/frylock/32/50213_2.png) [@frylock](https://discourse.julialang.org/u/frylock)\
**Post date:** [May 22, 2023, 4:38pm UTC](https://discourse.julialang.org/t/integer-overflow/99230/3 "2023-05-22T16:38:22Z")

</div>

Perhaps this?

```julia
help?> Base.Checked
  Checked

  The Checked module provides arithmetic functions for the built-in
  signed and unsigned Integer types which throw an error when an
  overflow occurs. They are named like checked_sub, checked_div, etc.
  In addition, add_with_overflow, sub_with_overflow,
  mul_with_overflow return both the unchecked results and a boolean
  value denoting the presence of an overflow.

```

Also discussed [here](https://discourse.julialang.org/t/the-performance-of-saturating-operations-or-adding-intrinsics/48575).

---

_[View the full topic](https://discourse.julialang.org/t/integer-overflow/99230)._
