- Math rounding functions
- math
.ceil() - math
.floor() - math
.round() - math
.roundeven() - math
.roundhalfdown() - math
.roundhalfup() - math
.trunc()

# math.roundeven()

Rounds *x* to nearest, ties to even (*bankers' rounding*).

### Return value

If *x* is `math.NAN`

, a NaN will be returned.

If *x* is integral, ±0, *x* itself is returned.

If *x* is `math.POS_INFINITY`

or `math.NEG_INFINITY`

, an infinity of the same sign is returned.

Otherwise, the rounded value of *x* is returned.

### Format

```
FLOAT
math.roundeven(FLOAT x)
```