`2^64` gives `0` and some suggestions

I am scripting a common beginner pitfalls video for Julia.

One of them is 2^64 gives 0. I think SafeREPL.jl can help with that. Would that good advice? I mean the other thing is that they should be aware of what they are doing and that they need to check for stuff like that themselves.

I think you should just use the standard REPL and show 2^64 and 10^19 as examples early on.

1 Like

Basically you need to explain to the newbies that

  1. julia’s basic data structure can only represent a small subset of all mathematical numbers
  2. for integers the basic Int64 has limitations
  3. for reals the basic Float64 also has limitations
  4. unlike Python, Julia does not hand hold the beginner coders