# print() Function & Examples

Use the print() utils function in Calcul.io. Review its syntax, edit working examples, understand the result, and explore related math functions.

## print

#### print(template, values)

#### print(template, values, precision)

Try it yourself:

```calculio
print("Lucy is $age years old", {age: 5})
print("The value of pi is $pi", {pi: pi}, 3)
print("Hello, $user.name!", {user: {name: "John"}})
print("Values: $1, $2, $3", [6, 9, 4])
```

[format](https://calcul.io/function/format/index.md)

---

## print(): render a value as text

**print(x)** produces a readable textual representation of a value or expression. It is useful for logs, labels, diagnostics, and displaying symbolic results.

## Readable output

Printing is about representation, not changing the underlying value. An expression may be printed in a conventional mathematical form while remaining available for further evaluation.

## Related formatting tools

Use [format()](https://calcul.io/function/format/index.md) to control numeric notation, [numeric()](https://calcul.io/function/numeric/index.md) for approximation, and [parse()](https://calcul.io/function/parse/index.md) to read text back as an expression. [simplify()](https://calcul.io/function/simplify/index.md) can make printed formulas shorter.

## Caveat

Formatted text is for people, not necessarily a lossless data interchange format. Preserve original values when later computation needs full precision.

[All functions](https://calcul.io/functions/index.md)
