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


Outputs
?a boolean


Word description
Tests if n is a power of 2.

Definition