Previous Up Next

12.4.8 Converting an expression to a string: string

The string command converts an expression to a string.

Example

Input:

string(ifactor(6))

Output:

"2 * 3"

This is the same thing as adding the empty string to the expression:

ifactor(6) + ""


If you want to convert an unevaluated expression to a string, you can quote the expression (see Section ‍5.12.4).

Example

Input:

string(quote(ifactor(6)))
"ifactor(6)"

Previous Up Next