# [Tex/LaTex] typesetting modulus operator, as in remainder

best practicesmath-mode

Is there a standard way to typeset the modulus operator (as in arithmetic remainder)? The percent sign (%) is often used by programming languages and mathematicians tend to use mod, but because of the romanization of mod, this notation can be confusing when used inline with text as in

So long as T mod n = 0 (i.e., the quantity is an integral multiple of n)...


I am currently using $T\mod{}n=0$, which places more space between the first argument and mod than between mod and the second argument.

\bmod is designed for mod used as a binary op.