This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

PrecedenceForm

PrecedenceForm[expr, prec]
prints with expr parenthesized as it would be if it contained an operator with precedence prec.
  • prec must be an integer. See notes for Infix.
  • PrecedenceForm acts as a "wrapper", which affects printing, but not evaluation.
Force parenthesization by lowering the effective precedence of multiplication:
In[1]:=
Click for copyable input
Out[1]=
New in 1