Why is 2^63 negative?

There is 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.

6 Likes