This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
[an error occurred while processing this directive] $PrePrint

  • $PrePrint is a global variable whose value, if set, is applied to every expression before it is printed.
  • $PrePrint is applied after Out[ n ] is assigned, but before the output result is printed.
  • See the Mathematica book: Section 2.13.1.
  • See also: $Post, $MessagePrePrint.

    Further Examples

    Ordinarily Pi and E are left symbolic and are not approximated.

    In[1]:=

    Out[1]=

    This setting of $PrePrint make numbers that appear in output approximate.

    In[2]:=

    Out[2]=

    In[3]:=

    Out[3]=

    This restores the original behavior.

    In[4]:=

    Out[4]=

    In[5]:=

    Out[5]=