round 函式

將 _X 捨入至最接近的整數。

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

參數

  • _X
    浮點數值

傳回值

傳回最接近 _X 的整數。

需求

標頭: amp_math.h

命名空間: Concurrency::precise_math

請參閱

參考

Concurrency::precise_math 命名空間