VEC_CTS(ARG1, ARG2)

Purpose

Converts a vector of floating-point numbers into a vector of signed fixed-point numbers.

Class

Elemental function

Argument type and attributes

ARG1
must be an INTENT(IN) real vector.
ARG2
must be an INTENT(IN) integer. Its value must be specified by an initialization expression whose value is between 0 and 31 inclusive.

Result type and attributes

The result is an INTEGER(4) vector.

Result value

The value of each element of the result is the saturated value obtained by multiplying the corresponding element of ARG1 by 2 to the power of ARG2.