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