modf Function

Splits the specified argument into fractional and integer parts.

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

Parameters

  • _X
    Floating-point value

  • _Iptr (out parameter)
    The integer portion of _X, as a floating-point value.

Return Value

The signed fractional portion of _X.

Requirements

Header: amp_math.h

Namespace: Concurrency::precise_math

See Also

Reference

Concurrency::precise_math Namespace