DADiSP Worksheet Functions > Function Categories > Fourier Transforms and Signal Processing > BESTPOW2
Finds the power of 2 greater than or equal to the input value or length of the input series.
BESTPOW2(val)
val |
- |
A real value or a series or table. |
A real number.
bestpow2(30)
returns 32.
bestpow2(64)
returns 64.
W1: 1..200
bestpow2(W1)
returns 256.
If the input is a series or table, the return value is the next power of 2 greater than or equal to the length of the series.