even() Function

Rounds positive numbers up to nearest even integer and negative numbers down to the nearest even integer.

Syntax

even( number )

number: (Decimal) The number that will be rounded.

Returns

Integer

Examples

You can experiment with this function in the test box below.

Test Input

even(31.5) returns 32

FEEDBACK