numeric_limits<double>::epsilon() is defined to be the difference between 1.0 and the next value representable by double, but I want to find/calculate the numeric_limits<double>::epsilon() of a value other than 1.0? Is there any way to do this?
c++ numeric_limits<double>::epsilon() for values other than 1
449 views Asked by Tomer Wolberg At
1
As pointed in the comments, you can use
std::nextafter: