Mathematica > Testing Expressions >

EvenQ

EvenQ[expr]
gives True if expr is an even integer, and False otherwise.
  • EvenQ[expr] returns False unless expr is manifestly an even integer (i.e., has head Integer, and is even).
New in 1
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team