EVEN

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

This function takes a single Number as input. It returns another Number: the given number, rounded up to the nearest even integer.

Declaration

EVEN(number) -> even_number

 

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:

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:

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:

EVEN(10) -> 10