Learn R Programming

RSEIS (version 3.3-3)

next2: Next Power of Two

Description

Return next power of two greater than n

Usage

next2(x)

Arguments

x
length of vector

Value

  • integer value

Examples

Run this code
k <- 1236
next2(k)

Run the code above in your browser using DataLab