I was having this long discussion with a colleague as to whether the Modulo operation is a standard mathematical operation or not.
He insisted the programming languages don't have a defined standard for the sign of the operation because it's not mathematical standard which dictates Euclidean division and therefore they were free to decide. Upon showing the point mentioned in Wikipedia which stated:
In mathematics the result of the modulo operation is the remainder of the Euclidean division.
he said it's just a Wikipedia article not a standard and that the immediately following statement:
However, other conventions are possible.
actually point to the fact that the operation is not a standard meaning Euclidean division.
Is the modulo operation a standard mathematical operation?
As a side question, how are standards defined in mathematics?
a % 0. – Hagen von Eitzen Feb 01 '14 at 11:25