BESTPOW2

Purpose:

Finds the power of 2 greater than or equal to the input value or length of the input series.

Syntax:

BESTPOW2(val)

val

-

A real value or a series or table.

Returns:

A real number.

Example:

bestpow2(30)

 

returns 32.

Example:

bestpow2(64)

 

returns 64.

Example:

W1: 1..200

bestpow2(W1)

 

returns 256.

Remarks:

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.

See Also:

FFT

LOG2

NEXTPOW2