Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

is_even function

Test whether a whole number is even.

How to write it

is_even(n)

n
A whole number. Takes a whole number.

Examples

  • is_even⁡(4)=true⁡\displaystyle \operatorname{is\_even}(4) = \operatorname{true}
    is_even(4)

    In the solver, is_even(4) gives true.

    Open in the solver
  • is_integer

    Test whether a value is a whole number.

  • implies

    True unless the first condition is true and the second false.

  • is_number

    Test whether a value is a number.

  • greater_equal

    True when the first value is at least the second: the function form of >=.

  • is_numeric

    Test whether a value has a numeric value, such as pi.

  • greater

    True when the first value is greater than the second: the function form of >.