Skip to content

HoldForm

HoldForm[expr] prevents automatic evaluation of expr. Prints as expr.

Attributes[HoldForm] := {HoldAll, Protected}

Simple examples

In[1]:= HoldForm[Power[5, 3]]
Out[1]= (5^3)
In[2]:= HoldForm[Power[5., 3.]]
Out[2]= (5.^3.)