Why does 2^100 give 0?

Great question, thanks for asking.

I think this section on integer arithmetic answers your question better than I could.

Appending Edit: Alan Edelman recently gave a lecture on floating point arithmetic. Hope it helps!

4 Likes