InputForm

InputForm[expr]

prints as a version of expr suitable for input to the Wolfram Language.

Details and Options

  • InputForm always produces one-dimensional output, suitable to be typed as lines of Wolfram Language input.
  • InputForm acts as a "wrapper", which affects display, but not evaluation. »
  • Put (>>) produces InputForm by default.
  • Short[InputForm[expr]] can be used, but may generate skeleton objects that cannot be given as Wolfram Language input.
  • The option NumberMarks can be used to specify whether ` marks should be used to indicate type, precision, or accuracy of approximate numbers. »

Examples

open allclose all

Basic Examples  (2)

InputForm of a typeset expression:

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

InputForm of a graphic:

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

Scope  (8)

Options  (3)

Properties & Relations  (3)

See Also

OutputForm  FullForm  StandardForm  TextString  Compress  BinarySerialize

Tutorials

Introduced in 1988
(1.0)
| Updated in 1996
(3.0)