Mathematica 9 is now available

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

EvenQ

FilledSmallSquare EvenQ[expr] gives True if expr is an even integer, and False otherwise.

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

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

FilledSmallSquare See Section 2.3.5 and Section 3.1.1.

FilledSmallSquare See also: IntegerQ, OddQ, TrueQ.

FilledSmallSquare New in Version 1.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.