Let julia return default Int32 or Float32-type data?

x = [1, 2, 3]; typeof(x) always return Vector{Int64};
y = 1.0; typeof(y) always return Float64;
myfunc(my_param) always return Int64 or Float64;
… …

is it possible to make a global setting to make sure every evaluation return default Int32 or Float32-type data after launch julia?

There is this:

3 Likes