共用方式為


fmodf Function

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

inline float fmodf(
   float _X,
   float _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.

Remarks

This function is identical to the function overload fmod(float, float). It’s provided for source-level compatibility with source code that uses the C Standard Library function fmodf.

Requirements

Header: amp_math.h

Namespace: Concurrency::precise_math

See Also

Reference

Concurrency::precise_math Namespace