My first big deception with Julia. 😢
julia> 2^62
4611686018427387904
julia> 2^63
-9223372036854775808
julia> 2^64
0
When using Python:
>>> 2**62
4611686018427387904
>>> 2**63
9223372036854775808
>>> 2**64
18446744073709551616
Now you see why the snake won.
I almost responded. (and now I am :)
It seemed apparent that it was overflowing a limit there, but it wasn't reporting the error properly.
I'm not really familiar with julia. I assume "big" means it can handle a larger number of significant digits.
I think I understand the metaphor, too. Not sure. But please don't explain it. -- there is nothing worse than trying to explain a joke.
(Nobody gets my jokes either.)
@Pat
I could have used Int128() , but what joke can you make with that?
(Sometimes I do, but I would never confess it of course.)
It seems that no one will come to restore this poor #programmer confidence in Julia. But I don't want you to think bad of Julia.
It happens that Julia is just very demanding and needs the big() function to make it work.
julia> big(2)^big(64)
18446744073709551616
See? (nerd joke warning!)