TextString

TextString[expr]

gives a human-readable string representation of expr.

Details and Options

Examples

open allclose all

Basic Examples  (3)

Convert an integer:

In[1]:=
Click for copyable input

Convert a real number:

In[2]:=
Click for copyable input

Convert a GeoPosition:

In[1]:=
Click for copyable input

Convert a DateObject:

In[2]:=
Click for copyable input

Convert a TimeObject:

In[3]:=
Click for copyable input

Convert a Quantity:

In[4]:=
Click for copyable input

Convert a list of elements:

In[1]:=
Click for copyable input

Scope  (4)

Options  (6)

Properties & Relations  (1)

Possible Issues  (1)

See Also

ToString  StringTemplate  InputForm  OutputForm  Short  WriteString

Introduced in 2014
(10.0)