November 2017
Beginner
316 pages
6h 40m
English
It is easy to represent floating point numbers in Julia. They are represented in a similar fashion as they are in other languages:
# Add a decimal pointjulia> 100.0100.0julia> 24.24.0# It is not required to precede a number from the decimal pointjulia> .100.1julia> typeof(ans)Float64
There is a concept of positive zero and negative zero in Julia. They are equal but with different binary representations:
# equating two zeroesjulia> 0.0 == -0.0truejulia> bits(0.0)"0000000000000000000000000000000000000000000000000000000000000000"# different first bit for negative zerojulia> bits(-0.0)"1000000000000000000000000000000000000000000000000000000000000000"
Exponential notation can be very useful and convenient in various ...
Read now
Unlock full access