roundf 函式 (fast_math)

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

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

參數

  • _X
    浮點數值

傳回值

傳回最接近 _X 的整數。

需求

標頭: amp_math.h

命名空間: Concurrency::fast_math

請參閱

參考

Concurrency::fast_math 命名空間