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
is_integer(3)In the solver,
Open in the solveris_integer(3)givestrue.
Related functions
- is_number
Test whether a value is a number.
- is_even
Test whether a whole number is even.
- is_numeric
Test whether a value has a numeric value, such as pi.
- implies
True unless the first condition is true and the second false.
- is_odd
Test whether a whole number is odd.
- greater_equal
True when the first value is at least the second: the function form of >=.