Mathematica 9 is now available
[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]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.