RosettaCodeData/Task/Integer-overflow/Julia/integer-overflow-1.julia

10 lines
229 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
using Printf
S = subtypes(Signed)
U = subtypes(Unsigned)
println("Integer limits:")
for (s, u) in zip(S, U)
@printf("%8s: [%s, %s]\n", s, typemin(s), typemax(s))
@printf("%8s: [%s, %s]\n", u, typemin(u), typemax(u))
end