OddQ¶
Status: Stable
documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
Description¶
Examples¶
No verified examples yet for this function.
Implementation notes¶
builtin_oddq (src/core.c) returns True for an EXPR_INTEGER with n % 2 != 0, uses mpz_odd_p for an EXPR_BIGINT, and returns False for everything else.
Attributes: Protected.
Implementation status¶
Stable — documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
References¶
- Source:
src/core.c - Specification:
docs/spec/builtins/expression-information.md
Notes & additional examples¶
Worked examples¶
Notes¶
OddQ returns True only for odd integers (Integer or BigInt); any non-integer argument gives False.