# Why is 2^63 negative?

**URL:** <https://discourse.julialang.org/t/why-is-2-63-negative/48513>\
**Category:** New to Julia\
**Tags:** integer-overflow\
**Created:** [October 16, 2020, 7:18pm UTC](https://discourse.julialang.org/t/why-is-2-63-negative/48513 "2020-10-16T19:18:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Post date:** [October 16, 2020, 7:38pm UTC](https://discourse.julialang.org/t/why-is-2-63-negative/48513/5 "2020-10-16T19:38:28Z")

</div>

There is [SaferIntegers.jl](https://github.com/JeffreySarnoff/SaferIntegers.jl), if you want checked arithmetic with integers. You can also use functions in `Base.Checked` directly, like `Base.Checked.checked_add`, for example.

---

_[View the full topic](https://discourse.julialang.org/t/why-is-2-63-negative/48513)._
