The function EVEN rounds a number up to the nearest even integer.
EVEN(number) -> even_number
- number (required, type: Number)
- The number to round.
- even_number (type: Number)
- The given number, rounded 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