다음을 통해 공유


fdim Function

Computes the positive difference between the arguments.

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

Parameters

  • _X
    Floating-point value

  • _Y
    Floating-point value

Return Value

The difference between _X and _Y if _X is greater than _Y; otherwise, +0.

Requirements

Header: amp_math.h

Namespace: Concurrency::precise_math

See Also

Reference

Concurrency::precise_math Namespace