nearbyintf 函数

通过使用当前舍入方向,舍入参数为浮点格式的一个整数值,整数。

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

参数

  • _X
    浮点值

返回值

返回舍入的整数值。

要求

**头文件:**amp_math.h

**命名空间:**Concurrency::precise_math

请参见

参考

Concurrency::precise_math 命名空间