R: Next integer power of 2

nextDyadic {ifultools} | R Documentation

## Next integer power of 2

### Description

Find smallest power of two that is greater than or equal to an input x.

### Usage

    nextDyadic(x)

### Arguments

`x` | a real number. May be positive, zero, or negative.

### Value

returns the next power of two that is greater than, or equal to, the input x. If x is negative, 1 is returned.

### See Also

`isVectorAtomic`, `decibel`.

### Examples

    nextDyadic(15)

[Package ifultools version 2.0-19 Index]