This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Tests /

OddQ

FilledSmallSquare OddQ[expr] gives True if expr is an odd integer, and False otherwise.

FilledSmallSquare OddQ[expr] returns False unless expr is manifestly an odd integer (i.e., has head Integer, and is odd).

FilledSmallSquare You can use OddQ[x] ^= True to override the normal operation of OddQ, and effectively define x to be an odd integer.

FilledSmallSquare See Section 2.3.5 and Section 3.1.1.

FilledSmallSquare See also: IntegerQ, EvenQ, TrueQ.

FilledSmallSquare New in Version 1.

Further Examples