Mathematica 9 is now available

ToString

Usage

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.


Notes

ToString supports the same set of options as OpenAppend, with default settings FormatType -> OutputForm, PageWidth -> Infinity, TotalWidth -> Infinity.
ToString uses any relevant definitions given for Format and MakeBoxes.
• See Section 2.9.3.
• New in Version 1; modified in 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.