# to_string function

Write a value as a string.

## How to write it

### to_string(expr)

**expr**

Any expression: a number, a formula, a list or a matrix. Takes an expression.

## Examples

- $\displaystyle \operatorname{to\_string}(12+1) = \text{13}$

  `to_string(12 + 1)`

  In the solver, `to_string(12 + 1)` gives `"13"`.

  [Open in the solver](https://hilberon.com/?q=to_string%2812%20%2B%201%29)

## Related functions

- [is_string](https://hilberon.com/library/is_string)

  Test whether a value is a string.
- [string_length](https://hilberon.com/library/string_length)

  Number of characters in a string.
- [string_join](https://hilberon.com/library/string_join)

  Join strings into one.

---
Source: https://hilberon.com/library/to_string
