Share via


round Function (fast_math)

Rounds _X to the nearest integer

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

Parameters

  • _X
    Floating-point value

Return Value

Returns the nearest integer of _X

Requirements

Header: amp_math.h

Namespace: Concurrency::fast_math

See Also

Reference

Concurrency::fast_math Namespace