# is_odd function

Test whether a whole number is odd.

## How to write it

### is_odd(n)

**n**

A whole number. Takes a whole number.

## Examples

- $\displaystyle \operatorname{is\_odd}(3) = \operatorname{true}$

  `is_odd(3)`

  In the solver, `is_odd(3)` gives `true`.

  [Open in the solver](https://hilberon.com/?q=is_odd%283%29)

## Related functions

- [is_satisfiable](https://hilberon.com/library/is_satisfiable)

  Test whether a condition is true for some value of its variables.
- [is_numeric](https://hilberon.com/library/is_numeric)

  Test whether a value has a numeric value, such as pi.
- [is_tautology](https://hilberon.com/library/is_tautology)

  Test whether a condition is true for every value of its variables.
- [is_number](https://hilberon.com/library/is_number)

  Test whether a value is a number.
- [less](https://hilberon.com/library/less)

  True when the first value is less than the second: the function form of \<.
- [is_integer](https://hilberon.com/library/is_integer)

  Test whether a value is a whole number.

---
Source: https://hilberon.com/library/is_odd
