WLJS LogoWLJS Notebook

OddQ

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

Examples

Test if a number is odd:

OddQ[7]
(* True *)
OddQ[4]
(* False *)

Filter odd numbers from a list:

Select[Range[10], OddQ]
(* {1, 3, 5, 7, 9} *)

Please visit the official Wolfram Language Reference for more details.

On this page