Learn R Programming

bracketeer (version 0.1.1)

next_power_of_2: Calculate the next power of 2

Description

Calculate the next power of 2

Usage

next_power_of_2(n)

Value

The smallest power of 2 >= n

Arguments

n

A positive integer