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

Prev:log2 ( x -- n )
Next:^mod ( x y n -- z )


Vocabulary
math

Inputs and outputs
ma non-negative integer
nan integer


Word description
Outputs the smallest power of 2 greater than or equal to m. The output value is always at least 2.

Definition