modff Function

Splits the specified argument into fractional and integer parts.

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

Parameters

  • _X
    Floating-point value

  • _Iptr
    The integer portion of _X, as a floating-point value.

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