round Function

Rounds _X to the nearest integer

inline float round(
   float _X
) restrict(amp);
inline double round(
   double _X
) restrict(amp);

_X

Floating-point value

Returns the nearest integer of _X

Header: amp_math.h

Namespace: Concurrency::precise_math

Show: