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

$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.
By default, $PrePrint is not defined, meaning output is shown as it comes from evaluation:
Show exact quantities by their numerical value:
The function is designed to preserve arbitrary precision numbers if they are in the output:
Restore $PrePrint to the default:
Note that changing $PrePrint did not change the values saved in Out:
By default, $PrePrint is not defined, meaning output is shown as it comes from evaluation:
In[1]:=
Click for copyable input
Out[1]=
 
Show exact quantities by their numerical value:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
The function is designed to preserve arbitrary precision numbers if they are in the output:
In[4]:=
Click for copyable input
Out[4]=
Restore $PrePrint to the default:
In[5]:=
Click for copyable input
Note that changing $PrePrint did not change the values saved in Out:
In[6]:=
Click for copyable input
Out[6]=
Show matrices using plots:
Restore $PrePrint to the default:
New in 1