Handbook
Glossary
>even ( m -- n )
Factor handbook
»
The language
»
Numbers
»
Arithmetic
»
Bitwise arithmetic
»
Additional bitwise arithmetic
Prev:
h>b/b ( h -- b1 b2 )
Next:
>odd ( m -- n )
Vocabulary
math
.
bitwise
Inputs
m
an
integer
Outputs
n
an
integer
Examples
USING: math.bitwise prettyprint ; 7 >even .
6
Word description
Sets the lowest bit in the integer to 0, which either does nothing or outputs 1 less than the input integer.
Definition
IN:
math.bitwise
:
>even
( m -- n )
0
clear-bit
;
foldable
flushable