VEC_ROUND(ARG1)

Purpose

Returns a vector containing the rounded values of the corresponding elements of the given vector.

Class

Elemental function

Argument type and attributes

ARG1
An INTENT(IN) real vector.

Result type and attributes

The result is a vector of the same type as ARG1.

Result value

Each element of the result contains the value of the corresponding element of ARG1, rounded to the nearest representable floating-point integer, using IEEE round-to-nearest rounding.