C++ floating point comparison

Job ID: 34602357

Budget: $10 – $30 USD

Very simple job. I want to be able to reuse the code at link below but without boost.

https://www.boost.org/doc/libs/1_67_0/boost/math/special_functions/relative_difference.hpp

boost::math::isnan could be replaced with std::isnan
Need an equivalent replacement for
boost::math::tools::promote_args<T, U>::type
Related categories: Templates C++ Programming Boost