ph_isodd PowerHome formula function
Description
Determines whether a whole number is odd or not
Syntax
ph_isodd ( num )
Argument |
Description |
num | Integer. A whole (positive or negative) number to check |
Return value
Integer. Returns 1 if the number is odd. Returns 0 if the number is even.
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_isodd(2) --> Return=0
• ph_isodd([TEMP2]-[TEMP3]) --> Return=1 if the result is an odd number