Mathematica > Testing Expressions >

OddQ

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