![]() |
Home | Libraries | People | FAQ | More |
#include <boost/math/special_functions/next.hpp>
namespace boost{ namespace math{ template <class FPT> FPT float_next(FPT val); }} // namespaces
返回下一個大於x的可表示的值。如果x 不是有限的,那麼返回一個定義域錯誤. 如果沒有比x大的值,那麼返回溢出錯誤.
與下面的函數具有相同效果:
nextafter(val, std::numeric_limits<FPT>::max());