EVEN
Last updated
Was this helpful?
Last updated
Was this helpful?
The function EVEN rounds a number up to the nearest even integer.
This function takes a single as input. It returns another Number: the given number, rounded up to the nearest even integer.
number (required, type: Number) The number to round.
even_number (type: Number) The given number, rounded up to the nearest even integer.
The following example takes the odd number 3 and rounds it up to the nearest even integer:
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:
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: