parity of a number

Calculus in processing ... please wait
is_even function returns 1 if the number is even, 0 otherwise.
is_even(`191`), returns 0, indicating that the number is not even.

Parity of a number

is_even function returns 1 if the number is even, 0 otherwise.


The calculator is able to determine the parity of an integer, ie, to check if a number is even or odd .

An integer is even if it is a multiple of 2, otherwise it is an odd number. In other words, a number is even if it is divisible by 2.

  • Verify that number is even
  • The arithmetic calculator is able to verify that a number is even. If the number is even, the function returns 1, otherwise it returns 0.

    For example, to check that the number 0 is odd or even 0, enter the following formula is_even(`0`), the calculator returns 1 indicating that 0 is an even number.

  • Verify that number is odd
  • The arithmetic calculator is able to verify that a number is odd. Through function is_even. If the number is odd, the calculator returns 0, indicating that the number is not even, so it is odd.

    For example to check that the number 1 is odd, enter the following formula is_even(`1`), the calculator returns 0, indicating that the number is not even, in other words, it is odd.

    The calculator has another function to check that a number is odd .

    Syntax :

    is_even(number), where number is a integer.


    Examples :

    is_even(`191`), returns 0, indicating that the number is not even.

    See also
    List of related calculators :