Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Layout & Tables > Textual Elements in Notebooks > StringForm >
Mathematica > Visualization and Graphics > Data Visualization > Layout & Tables > Textual Elements in Notebooks > StringForm >
Mathematica > Data Manipulation > Statistical Data Analysis > Statistical Visualization > Data Visualization > Layout & Tables > Textual Elements in Notebooks > StringForm >

StringForm

StringForm
prints as the text of the controlstring, with the printed forms of the embedded.
  • in the control string indicates a point at which to print .
  • includes the next not yet printed.
  • prints a raw in the output string. »
  • You can use StringForm to set up "formatted output".
  • Messages given as values for objects of the form are used as control strings for StringForm.
Insert a single value into a string:
Insert a sequence of values into a string:
Insert indexed values:
Insert a single value into a string:
In[1]:=
Click for copyable input
Out[1]=
 
Insert a sequence of values into a string:
In[1]:=
Click for copyable input
Out[1]=
 
Insert indexed values:
In[1]:=
Click for copyable input
Out[1]=
Embed a symbolic result:
Embed an unevaluated symbolic expression:
Include an explicit character in a string:
Insert any number of expressions into a string:
Expressions can be inserted in the output string more than once:
StringForm returns a string with items inserted as output:
Message prints a string with items inserted:
StringInsert inserts a string into a string:
There should be enough items to fill the placeholders in the control string:
New in 1 | Last modified in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF