Functions and operators\mod

\modCommand

Used in modular arithmetic to write an unparenthesized modulus qualifier after an expression

\mod{n}
Available in
base
Kind
prefix
Allowed mode
math
Frequency
0.09% of corpus formulasrank 116 of 263
Commonality
medium
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: None
About the test scope

Syntax#

\modm{a}math content

Argspec m — one mandatory argument. Reading argspecs

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Expands to#

\mod{#1} \mathchoice{\kern18mu}{\kern12mu}{\kern12mu}{\kern12mu}\mmlToken{mi}{mod}\,\,#1

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\mod{a}Positive · baselinePassPassFail
\mod aPositive · bare[0]PassPassFail
All 74 in Functions and operators