共用方式為


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 命名空間