>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
man integer


Outputs
nan 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