通过使用当前舍入方向,舍入参数为浮点格式的一个整数值,整数。
inline float nearbyint(
float _X
) restrict(amp);
inline double nearbyint(
double _X
) restrict(amp);
参数
- _X
浮点值
返回值
返回舍入的整数值。
要求
**头文件:**amp_math.h
**命名空间:**Concurrency::precise_math
通过使用当前舍入方向,舍入参数为浮点格式的一个整数值,整数。
inline float nearbyint(
float _X
) restrict(amp);
inline double nearbyint(
double _X
) restrict(amp);
返回舍入的整数值。
**头文件:**amp_math.h
**命名空间:**Concurrency::precise_math