power-of-2? ( n -- ? )
Factor handbook > The language > Numbers > Mathematical functions > Integer functions

Prev:mod-inv ( x n -- y )
Next:even? ( n -- ? )


Vocabulary
math

Inputs and outputs
nan integer
?a boolean


Word description
Tests if n is a power of 2.

Definition