November 2017
Beginner
316 pages
6h 40m
English
We can get a better understanding of integers using the REPL.
$ juliajulia> 2424julia> typeof(24)Int64
Here, it is Int64 because we are on a 64-bit system. If we were on a 32-bit system, then the default integer type would have been Int32.
We can check what the default word size (architecture) of the system we are working on is:
julia> Sys.WORD_SIZE64
The type of architecture is also mentioned on the Julia banner when we start the REPL.
The architecture is mentioned on the last line:
x86_64-linux-gnu
This means that we are using Linux and are on the x86_64 (64-bit) platform. If you are on a 32-bit platform, you might get i386.
In a scenario where we are dealing with large numbers that cannot be represented by ...
Read now
Unlock full access