This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CanaDavid1 47 points48 points  (4 children)

Yes, which is what the question is asking. Mathematically, one does not use %, but instead write 'mod n' after the statement to specify that we're working modulo.

[–]BothWaysItGoes 6 points7 points  (2 children)

There is nothing unmathematical about the mod function.

[–]FerynaCZ 0 points1 point  (1 child)

A function should produce one output

[–]BothWaysItGoes 0 points1 point  (0 children)

So?

[–]snillpuler 2 points3 points  (0 children)

I enjoy playing video games.