parity of a number

Calculus in processing ... please wait
is_odd function returns true if the number passed is odd, false otherwise.
is_odd(`191`), returns 0, indicating that the number is odd.

Parity of a number

is_odd function returns true if the number passed is odd, false otherwise.


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

An integer is odd if it is not a multiple of 2. If an integer is not odd, then, it is even .

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

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

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

  • Vérifier qu'un nombre est pair
  • The arithmetic calculator is able to verify that a number is even. Through function is_odd. If the number is even, the calculator returns 0, indicating that the number is not odd, so it is even.

    For example to check that the number 4 is even, enter the following formula is_odd(`4`), the calculator returns 0, indicating that the number is not odd, ie it is even.

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

    Syntax :

    is_odd(number), where number is a integer.


    Examples :

    is_odd(`191`), returns 0, indicating that the number is odd.

    See also
    List of related calculators :