ISODD

The function ISODD outputs TRUE if the given Number is odd.

This function takes a Number as input. It outputs a booleanTRUE if the given Number is odd, FALSE if it isn't.

Declaration

ISODD(number) -> boolean

 

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:

ISODD(2) -> FALSE

The following example checks to see if the number three is odd. It is:

ISEVEN(2) -> TRUE

The following example checks to see if the number 3.3 is odd. It isn't, because 3.3 isn't an integer: 

ISODD(2.2) -> FALSE

 

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.