Handbook
Glossary
even? ( n -- ? )
Factor handbook
»
The language
»
Numbers
»
Mathematical functions
»
Integer functions
Prev:
power-of-2? ( n -- ? )
Next:
odd? ( n -- ? )
Vocabulary
math
Inputs
n
an
integer
Outputs
?
a
boolean
Word description
Tests if an integer is even.
Definition
IN:
math
:
even?
( n -- ? )
1
bitand
zero?
;
inline