It is intentional. There was extensive discussion about this in 2009. We
decided that it was more important that integer ops be usably fast on
32-bit systems than having things work exactly the same everywhere.

On Tuesday, October 6, 2015, Jong Wook Kim <[email protected]> wrote:

> I can easily type floating point literals of wanted precision:
>
> julia> typeof(3.14f0)
> Float32
>
> julia> typeof(3.14)
> Float64
>
> julia> typeof(3.14e0)
> Float64
>
>
> But i have to resort to converter method, in order to avoid being
> platform-dependent.
>
> julia> typeof(42)  # platform-dependent
> Int64
>
> julia> typeof(int64(42))
> Int64
>
> julia> typeof(int32(42))
> Int32
>
>
> Is this intended or has there been a discussion about this?
>
> Thanks,
>
> Jong Wook
>

Reply via email to