fabs 函式

傳回引數的絕對值

inline float fabs(
   float _X
) restrict(amp);
inline double fabs(
   double _X
) restrict(amp);

參數

  • _X
    浮點數值

傳回值

傳回引數的絕對值

需求

標頭: amp_math.h

命名空間: Concurrency::precise_math

請參閱

參考

Concurrency::precise_math 命名空間