modf 函数

将指定的参数拆分为小数和整数部分。

inline float modf(
   float _X,
   _Out_ float * _Iptr
) restrict(amp);
inline double modf(
   double _X,
   _Out_ double * _Iptr
) restrict(amp);

参数

  • _X
    浮点值

  • _Iptr(out 参数)
    _X 的整数部分,用作浮点值。

返回值

_X 带符号的小数部分。

要求

**头文件:**amp_math.h

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

请参见

参考

Concurrency::precise_math 命名空间