Arithmetic OperatorsRemember basic arithmetic from school? These work just like those.
The division operator Operands of modulo are converted to int before processing. For floating-point modulo, see fmod.
The result of the modulo operator
The above example will output: int(2) int(2) int(-2) int(-2) |