ISODD
The function ISODD outputs TRUE if the given Number is odd.
This function takes a Number as input. It outputs a boolean: TRUE if the given Number is odd, FALSE if it isn't.
Declaration
Parameters
number (required, type: Number
)
The number that may or may not be odd.
Return Values
boolean (type: Boolean
)
The result of checking if the given Number is odd; TRUE means that it is and FALSE means that it isn't.
Examples
The following example checks to see if the number two is odd. It isn't:
The following example checks to see if the number three is odd. It is:
The following example checks to see if the number 3.3 is odd. It isn't, because 3.3 isn't an integer:
Discussion
The function ISODD can be considered the opposite of the function ISEVEN – in cases where ISODD will output TRUE, ISEVEN will output FALSE, and visa versa.
Last updated