ToString

ToString[expr]
gives a string corresponding to the printed form of expr in OutputForm.

ToString[expr,form]
gives the string corresponding to output in the specified form.

Details and OptionsDetails and Options

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