# round() Function & Examples

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

## round

#### round(x)

#### round(x, n)

#### round(unit, valuelessUnit)

#### round(unit, n, valuelessUnit)

Try it yourself:

```calculio
round(3.2)
round(3.8)
round(-4.2)
round(-4.8)
round(pi, 3)
round(123.45678, 2)
round(3.241cm, 2, cm)
round([3.2, 3.8, -4.7])
```

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

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

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

---

## round(): Rounding to a Nearby Value

**round()** rounds a number to the nearest integer or requested precision. It is useful for display values, reports, and deliberately discrete calculations.

## Choose a rounding rule

Tie behavior matters, so test values exactly halfway between choices when financial or regulatory results depend on it. Use [floor()](https://calcul.io/function/floor/index.md) to always round down, [ceil()](https://calcul.io/function/ceil/index.md) to always round up, and [fix()](https://calcul.io/function/fix/index.md) to move toward zero.

Round at the presentation boundary whenever possible. Premature rounding compounds errors in totals, ratios, and iterative calculations. Use [format()](https://calcul.io/function/format/index.md) when only the displayed number of digits should change.

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