TextString

TextString[expr]
gives a human-readable string representation of expr.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Convert an integer:

In[1]:=
Click for copyable input
Out[1]//InputForm=

Convert a real number:

In[2]:=
Click for copyable input
Out[2]//InputForm=

Convert a GeoPosition:

In[1]:=
Click for copyable input
Out[1]//InputForm=

Convert a DateObject:

In[2]:=
Click for copyable input
Out[2]//InputForm=

Convert a TimeObject:

In[3]:=
Click for copyable input
Out[3]//InputForm=

Convert a list of elements:

In[1]:=
Click for copyable input
Out[1]//InputForm=
Introduced in 2014
(10.0)