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.
Even or Odd Numbers - dCode
Tag(s) : Data Processing, Mathematics
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!
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.
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
Excel has a function ISODD(), else there is a formula =IF(MOD(A1,2),"odd","even")
dCode retains ownership of the "Even or Odd Numbers" source code. Any algorithm for the "Even or Odd Numbers" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "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.) or any database download or API access for "Even or Odd Numbers" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Even or Odd Numbers" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Even or Odd Numbers on dCode.fr [online website], retrieved on 2025-04-16,