Owning Class: basic
Requires: MathScript RT Module
c = nextpowerof2(a)
Computes the first power of 2 that is not smaller than abs(a). More precisely, p = nextpowerof2(a) if 2^p>=abs(a) and p is minimal.
|a||Specifies a scalar, vector, or matrix of double-precision, floating-point or complex double-precision, floating-point numbers. If a is a vector, nextpowerof2(a) is equivalent to nextpowerof2(length(a)).|
|c||Returns the first power of 2 that is not smaller than abs(a). c is a scalar.|
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||Yes|
A = 7.3
C = nextpowerof2(A)