Policies & Guidelines

EVEN

Rounds a number up to the nearest even integer

Description

Returns the given number, rounded up to the nearest even integer. If the given number is an even integer, returns itself.

Function signature

EVEN(number: Number) => Number

Parameter

Description

Number

Number to round

Examples

Formula

Return value

EVEN(1)

2

EVEN(-1)

-2

EVEN(3)

4

EVEN(-12.3)

-14

EVEN(12.3)

14