Replying to @tknarr@mstdn.social

@tknarr @WahFo
"Consider that the integer arithmetic computers use isn't the integer arithmetic we use" - yes it is, it's just using a different base. 1+1=10 in base 2, and 2 in every other base, but in every case 1 thing plus 1 thing gives us two things, we just write it differently in different bases

Replying to @SmartmanApps@dotnet.social

@SmartmanApps @WahFo It's not the base that's different, it's the set of integers themselves. If you take the largest representable integer on a computer and add 1 to it, it wraps around to give you the smallest representable integer. In normal integer arithmetic there isn't a largest integer (or a smallest), the set of integers is infinite.

There are also arithmetics on a finite domain where adding 1 to the largest integer doesn't wrap around, it simply isn't defined.