# EVEN

**The function EVEN rounds a number up to the nearest even integer.**

This function takes a single [Number](../../variable-data-types/the-number-variable-data-type) as input. It returns another Number: the given number, rounded up to the nearest even integer.

#### Declaration

```javascript
EVEN(number) -> even_number
```

&#x20;

#### Parameters

**number** (required, type: _Number_) The number to round.

#### Return Values

**even\_number** (type: _Number_) The given number, rounded up to the nearest even integer.

#### Examples

The following example takes the odd number 3 and rounds it up to the nearest even integer:

```javascript
EVEN(3) -> 4
```

The following example takes the number 6.1573 and rounds it up to 8. Note that it doesn't matter that 6.1573 is much closer to the even number 6. The EVEN function always rounds the given number up:

```javascript
EVEN(6.1573) -> 8
```

When given an even integer, the EVEN function simple returns the given number unmodified. This is what happens in the following example, when the EVEN function takes the even integer 10 as input:

```javascript
EVEN(10) -> 10
```
