What prompted this question is this graph I made in Desmos:
I had come across a comment online where someone said in some contexts 2+2=5, which immediately made me think of modular arithmetic and I wondered in what mods 5 is congruent to 4, hence I plotted the above function. As you can see, Desmos has computed fractional roots, which doesn't make much sense to me. I assume it must be using some generalized definition of the mod function, rather than the usual one based on remainders from integer division. But how can that definition be generalized?
I did find one question on here asking about how to do algebra when there's real-valued version of of modular arithmetic involved and someone answered saying something about the reals being an abelian group, which I assume meant there is some standard extension of modular arithmetic to the reals, but it's not clear to me what that specifically has to do with the reals being abelian.