fmod Function (C++ AMP)

Computes the remainder of the first specified argument divided by the second specified argument.

inline float fmod(
   float _X,
   float _Y
) restrict(amp);
inline double fmod(
   double _X,
   double _Y
) restrict(amp);

Parameters

  • _X
    The first floating-point argument.

  • _Y
    The second floating-point argument.

Return Value

The remainder of _X divided by _Y; that is, the value of _X - _Yn, where n is a whole integer such that the magnitude of _X - _Yn is less than the magnitude of _Y.

Requirements

Header: amp_math.h

Namespace: Concurrency::precise_math

See Also

Reference

Concurrency::precise_math Namespace