2^ ( n -- 2^n )
Factor handbook > The language > Numbers > Arithmetic > Bitwise arithmetic

Prev:2/ ( x -- y )
Next:bit? ( x n -- ? )


Vocabulary
math

Inputs and outputs
na positive integer
2^na positive integer


Word description
Computes two to the power of n. This word will only give correct results if n is greater than zero; for the general case, use 2 swap ^.

Definition