modf Function

Splits _X 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

Return Value

Returns the signed fractional portion of _X

Requirements

Header: amp_math.h

Namespace: Concurrency::precise_math

See Also

Reference

Concurrency::precise_math Namespace