Handbook
Glossary
>odd ( m -- n )
Factor handbook
»
The language
»
Numbers
»
Arithmetic
»
Bitwise arithmetic
»
Additional bitwise arithmetic
Prev:
>even ( m -- n )
Next:
>signed ( x n -- y )
Vocabulary
math
.
bitwise
Inputs
m
an
integer
Outputs
n
an
integer
Examples
USING: math.bitwise prettyprint ; 4 >odd .
5
Word description
Sets the lowest bit in the integer to 1, which either does nothing or outputs 1 more than the input integer.
Definition
IN:
math.bitwise
:
>odd
( m -- n )
0
set-bit
;
foldable
flushable