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

PrecedenceForm

PrecedenceForm
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:
Force parenthesization by lowering the effective precedence of multiplication:
In[1]:=
Click for copyable input
Out[1]=
Define an operator using Infix:
Give the operator precedence higher than Plus but lower than Times:
Give the operator precedence higher than both Plus and Times:
Give the operator lowest precedence:
New in 1