Hello, the manual says: "In Julia, exceeding the maximum representable value of a given type results in a wraparound behavior:", but that seems to be the case only for the native type and above:
julia> typeof(typemax(Int64) + 1) -> Int64 julia> typeof(typemax(Int128) + 1) -> Int128 but: julia> typeof(typemax(Int8) + 1) -> Int64 julia> typeof(typemax(Int16) + 1) -> Int64 julia> typeof(typemax(Int32) + 1) -> Int64 These last 3 results seem inconsistent (and the manual incorrect) because for example, typeof(typemax(Int8)) -> Int8 and not Int64, so no, Julia doesn't do modular arithmetics all the time. -- Resistance is futile. You will be jazzimilated. Lisp, Jazz, Aïkido: http://www.didierverna.info