NextPow2 {ClamR} | R Documentation |
Next power of 2
Description
Find the next integer power of 2
Usage
NextPow2(x)
Arguments
x |
integer |
Value
integer that is a power of 2 higher than given integer
Author(s)
Jonathan M. Lees<jonathan.lees@unc.edu>
Examples
NextPow2(600)
NextPow2(1023)
NextPow2(1025)
[Package ClamR version 2.1-3 Index]