Formualizer Docs

ISODD

Returns TRUE if number is odd.

Returns TRUE when a number is odd.

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

=ISODD(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 =ISODD(7)

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 a negative decimal, which the function truncates before testing parity.

Formula =ISODD(-8.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?.

Test parity at zero.

Formula =ISODD(0)

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?.

The input cannot be converted to an integer.

Formula =ISODD("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?.

Boolean coercion

Formula =ISODD(TRUE)

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?.

FAQ

Are booleans valid inputs for ISODD?

Yes. TRUE is treated as 1 and FALSE as 0 before the odd check.

Implementation

Engine source

On this page