PyDocs

Nav

Numeric and Mathematical Modules

remainder

math

function · Added in 3.7
  • remainder(x, y)
Difference between x and the closest integer multiple of y.

Return x - n*y where n*y is the closest integer multiple of y.
In the case where x is exactly halfway between two multiples of
y, the nearest even value of n is used. The result is always exact.
0 Examples
No examples for math/remainder.
See Also
No see-alsos for math/remainder
0 Notes
No notes for remainder