IsOdd
The IsOdd function returns True if the integer part of a number is odd and returns False is it is even.
To return True for even values and False for odd, see IsEven.
Syntax
Function arguments
Notes
- The function is equivalent to the expression
Trunc(value) % 2 = 1
Examples
Examples with integer values
Tests whether 2 is odd or not, and returns False.
Tests whether 3 is odd or not, and returns True.
Examples with non-integer values
Tests whether the integer part of 2.3 is odd or not, and returns False.
Tests whether the integer part of the mathematical constant π is odd or not, and returns True.

