vec_round

Purpose

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

Syntax

d=vec_round(a)

Result and argument types

The following table describes the types of the returned value and the function arguments.

d a
vector float vector float
vector double vector double

Result value

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



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us