Search for a tool
Even or Odd Numbers

Tool to automatically detect the parity of a list of numbers. The parity of a number is the property that to be (or not to be) a multiple of two. An integer multiple of 2 is an even integer, the others are odd integers.

Results

Even or Odd Numbers -

Tag(s) : Data Processing, Mathematics

Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Feedback and suggestions are welcome so that dCode offers the best 'Even or Odd Numbers' tool for free! Thank you!

# Even or Odd Numbers

## Parity Filter/Calculator

 Action Filter even numbers Filter odd numbers Binarize each Digit (Even = 0, Odd = 1) Binarize each Digit (Even = 1, Odd = 0) Binarize each Number (Even = 0, Odd = 1) Binarize each Number (Even = 1, Odd = 0)

### How to check if a number is even?

A number is even if it is a multiple of $2$ (two). A number is multiple of $2$ if it has $2$ as divisor. An integer number has the number $2$ as a divisor if the remainder of the division by $2$ is $0$ (ie the result is an integer and not a floating point number).

Example: $12$ is even because $12 / 2 = 6$ (integer)

Example: $123$ is odd because $123 / 2 = 61.5$ (not integer)

The multiples of $2$ end with 0, 2, 4, 6 or 8. Check if a number is multiple of $2$ can thus be realized quickly by looking at the last digit of the number.

### What is the modulo 2 calculation?

The calculation modulo 2 (noted %2) is widespread in computing to check the parity of a number. The calculation returns 1=true if the number is odd and 0=false if the number is even.

Example: 1234%2=0 therefore 1234 is even

### How to check a number parity in Excel?

Excel has a function ISODD(), else there is a formula =IF(MOD(A1,2),"odd","even")

## Source code

dCode retains ownership of the "Even or Odd Numbers" source code. Except explicit open source licence (indicated Creative Commons / free), the "Even or Odd Numbers" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Even or Odd Numbers" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Even or Odd Numbers" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.

## Cite dCode

The copy-paste of the page "Even or Odd Numbers" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Even or Odd Numbers on dCode.fr [online website], retrieved on 2024-06-15, https://www.dcode.fr/even-odd

## Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!