# Rounding (round)

Nearest whole number, with halves rounded away from zero.

## How to write it

### round(x)

**x**

A number. Takes a number.

## Examples

- $\displaystyle \operatorname{round}(2.4) = 2$

  `round(2.4)`

  In the solver, `round(2.4)` gives `2`.

  [Open in the solver](https://hilberon.com/?q=round%282.4%29)
- $\displaystyle \operatorname{round}(-2.5) = -3$

  `round(-2.5)`

  In the solver, `round(-2.5)` gives `-3`.

  [Open in the solver](https://hilberon.com/?q=round%28-2.5%29)

## Related functions

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

  Sign of a number: -1, 0 or 1.
- [re](https://hilberon.com/library/re)

  Real part of a complex number.
- [sqrt](https://hilberon.com/library/sqrt)

  Square root; sqrt(x) is the power x^(1/2).
- [quotient](https://hilberon.com/library/quotient)

  Whole-number quotient of a division, without the remainder.
- [subtract](https://hilberon.com/library/subtract)

  A difference: the function form of -.
- [power](https://hilberon.com/library/power)

  A power: the function form of ^.

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