ISEVEN (Number) ISEVEN (Number)

Number

Number Number

The number to check.

Returns

Logical Logical

Whether the given number is even.

Returns whether the given number is even. ISEVEN (2) ISEVEN (2) returns TRUE and ISEVEN (3) ISEVEN (3) returns FALSE.

A number with a fractional part is first truncated toward zero, meaning that its fractional part is discarded. As such, ISEVEN (2.5) ISEVEN (2,5) returns TRUE.

An even number is evenly divisible by 2. To determine if a number is evenly divisible by another number, use the MOD function. These formulas are equivalent for whole numbers:

ISEVEN (Value1)
ISEVEN (Value1)

MOD (Value1, 2) = 0
MOD (Value1; 2) = 0

To determine if a number is odd, consider using the ISODD function.

Examples

ISEVEN (2)
ISEVEN (2)

Returns TRUE.

ISEVEN (3)
ISEVEN (3)

Returns FALSE.

ISEVEN (Value1)
ISEVEN (Value1)

Determines if Value1 is even.

MOD (Value1, 2) = 0
MOD (Value1; 2) = 0

Determines if Value1 is even.

fxEngine Shell Want this in your own terminal? A standalone version is coming. Get notified.
Loading fxEngine Shell