Mod[m, n, d] is equivalent to m-nQuotient[m, n, d].
The arguments of Mod can be any numeric quantities, not necessarily integers. »
For positive x, Mod[x, 1] gives the fractional part of .
For exact numeric quantities, Mod internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
Mod works with complex numbers, using its definition in terms of Quotient.