The manual reads “In Julia, exceeding the maximum representable value of a given type results in a wraparound behavior” with an example along these lines:
julia> typemax(Int64)+1
-9223372036854775808
which does wrap around on 64-bit system, but other “smaller” integral types, e.g. Int32
, Int16
, etc. don’t overflow and wrap around:
julia> typemax(Int8)+1
256
Am I reading it wrong?