nextafter 函式

以函式的形式找出依照 _Y 的方向,在 _X 之後下一個可以表示的數值

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

參數

  • _X
    浮點數值

  • _Y
    浮點數值

傳回值

在 _X 後傳回下能顯示的值,在函式的型別,會 _Y 的方向

需求

標頭: amp_math.h

命名空間: Concurrency::precise_math

請參閱

參考

Concurrency::precise_math 命名空間