Formualizer Docs

ISEVEN

Returns TRUE if number is even.

Returns TRUE when a number is even.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=ISEVEN(value)

Arguments

ArgumentTypeRequiredDefault
valueanyRequired—

Return type

Logical (TRUE or FALSE)

Remarks

  • Numeric input is truncated toward zero before parity is checked.
  • Booleans are coerced (TRUE -> 1, FALSE -> 0).
  • Errors propagate unchanged.

Error cases

  • Non-numeric text returns #VALUE!.

Examples

Test the parity of a positive odd integer.

Formula =ISEVEN(7)

Expected result FALSE

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Test a negative decimal, which the function truncates before testing parity.

Formula =ISEVEN(-8.9)

Expected result TRUE

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Test parity at zero.

Formula =ISEVEN(0)

Expected result TRUE

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

The input cannot be converted to an integer.

Formula =ISEVEN("seven")

Expected result #VALUE!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Even integer

Formula =ISEVEN(6)

Expected result TRUE

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Decimal truncation before parity

Formula =ISEVEN(3.9)

Expected result FALSE

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

How are decimals handled by ISEVEN?

The number is truncated toward zero before checking even/odd parity.

Implementation

Engine source

On this page