Int is useful for referring to the system’s native signed integer type, which is Int32 on 32-bit systems and Int64 on 64-bit systems. My understanding is that on modern CPU architectures, both Float32 and Float64 are equally "native".
Thanks, Jiahao Chen Staff Research Scientist MIT Computer Science and Artificial Intelligence Laboratory On Mon, Feb 9, 2015 at 2:34 PM, Christoph Ortner <[email protected] > wrote: > > Julia, conveniently provides an `Int` type, which is alias for `Int64`. I > like this because it frees me from thinking about which integer type to > use. But there is no corresponding `Float` type which is alias for > `Float64`. Why? > > It seems a trivial thing, but who knows what shifts will happen in > floating point computation over the next 10 years? Another reason why it > could be nice to have this, is because it would then let me set > Float=Float32 locally or globally if wanted to experiment with it. I > realise I can do that anyways, but it would be nicer to have a standard > name? > > Thanks, > Christoph > >
