Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
odd? ( n -- ? )
Factor documentation
>
Factor handbook
>
The language
>
Numbers
>
Mathematical functions
>
Integer functions
Prev:
even? ( n -- ? )
Next:
divisor? ( m n -- ? )
Vocabulary
math
Inputs and outputs
n
an
integer
?
a boolean
Word description
Tests if an integer is odd.
Definition
IN:
math
:
odd?
( n -- ? )
1
bitand
1
number=
;
inline