0

even

To return Yes (true) if the number is even

With this function, you can check whether a number is even, i.e. divisible by 2 without remainder. The return value is either Yes (true) or No (false). The 0 is also evaluated as even.

Syntax

even(number)

Return

boolean

Examples

even(10 + 12) 

Result: Yes (true)

even(10 + 13) 

Result: No (false)

even(0) 

Result: Yes (true)

even(10.2) 

Result: No (false)

See also

odd which returns Yes (true) if the number is odd.

Reply

null