# is_integer function

Test whether a value is a whole number.

## How to write it

### is_integer(x)

**x**

A value. Takes an expression.

## Examples

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

  `is_integer(3)`

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

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

## Related functions

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

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

  Test whether a whole number is even.
- [is_numeric](https://hilberon.com/library/is_numeric)

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

  True unless the first condition is true and the second false.
- [is_odd](https://hilberon.com/library/is_odd)

  Test whether a whole number is odd.
- [greater_equal](https://hilberon.com/library/greater_equal)

  True when the first value is at least the second: the function form of >=.

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