Is Odin's modulo `%` and remainder `%%` operator swapped?

Greetings.
I’m going to paste here a post I made on the zig forums and I want to check if a comment that was made there is true or not.

And this is one of the replies that I got and want to check if it’s true:

1 Like

They are not swapped and we are a different language to Zig, and there is no standard naming convention for the differences between modulo and remainders, even in mathematics. However % in Odin is akin to how it works in C and have kept the general naming conventions of C.

So there is no “mixed” naming convention, per se, but rather there is no real convention of what is meant by remainder or modulo, as much as people would like it to be.

3 Likes

Interesting I never knew that…
Thank for the reply.

1 Like